Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

H or VLookup Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark B - 06 May 2008 17:14 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.