Need some help. Worksheets 1 & 2 in one spreadsheet.
Worksheet 2 has data like this...
1234, Mark, A, B, C, D
1235, Fred, D, C, A
1236, Bill, E, B, A, D, C
I want to bring that info over to Worksheet 1, so that the same letters all
end up in the same column, like this
1234, Mark, A, B, C, D
1235, Fred, A, , C, D
1236, Bill, A, B, C, D, E
SO my first row in worksheet 1 currently looks like this...
='2'!A2, ='2'!A3, =HLOOKUP(A,'2'!D2:M2,1,TRUE),
=HLOOKUP(B,'2'!D2:M2,1,TRUE), etc
But "obviously", it is not working. Can someone help? Should I be using
VLOOKUP? THANKS!!!
MyVeryOwnSelf - 06 May 2008 22:31 GMT
> Need some help. Worksheets 1 & 2 in one spreadsheet.
> Worksheet 2 has data like this...
[quoted text clipped - 9 lines]
> 1235, Fred, A, , C, D
> 1236, Bill, A, B, C, D, E
It doesn't use a LOOKUP, but maybe something like this would work.
In C2 put
=IF(COUNTIF('2'!$C2:$M2,CHAR(CODE("A")+COLUMN()-3))>0,
CHAR(CODE("A")+COLUMN()-3), "")
Then copy C2 and paste into all of C2:M4.