H or VLookup Help

M

Mark B

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!!!
 
M

MyVeryOwnSelf

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

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top