Hi all!
Any suggestions on the following problem I'm trying to solve would be greatly appreciated!
I have a spreadsheet with about 10,000 rows, each row representing 1 wall of a room (so there are four rows per room). Column "A" contains a room number (each room has a unique number). Column "B" contains a wall number (1-4). Column "C" contains the walls color (a text value).
I need to write some EFFICIENT VBA that, for each row, puts the color of one ADJACENT wall into Column "D", and the color of the other ADJACENT wall into Column "E".
My spreadsheet looks like this:
Any ideas on how I could go about this?
Thanks!
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
Any suggestions on the following problem I'm trying to solve would be greatly appreciated!
I have a spreadsheet with about 10,000 rows, each row representing 1 wall of a room (so there are four rows per room). Column "A" contains a room number (each room has a unique number). Column "B" contains a wall number (1-4). Column "C" contains the walls color (a text value).
I need to write some EFFICIENT VBA that, for each row, puts the color of one ADJACENT wall into Column "D", and the color of the other ADJACENT wall into Column "E".
My spreadsheet looks like this:
Code:
RoomID WallID WallColor AdjWallColor AdjWallColor
A241 1 Red
A241 2 Blue
A241 3 Green
A241 4 Yellow
B321 1 Orange
etc. . .
Any ideas on how I could go about this?
Thanks!
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)