Using Vlookup

bradjedis
4StarLounger
Posts: 538
Joined: 30 Mar 2010, 18:49
Location: United States

Using Vlookup

Post by bradjedis »

Greetings!

Is it possible when setting up a vlookup, to pull ALL the data for the item being queried, at one time?

ex: I look for D123, and It has 10 columns, I would like to pull the remaining nine across to the target sheet.


THanks,
Brad

User avatar
HansV
Administrator
Posts: 78381
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Using Vlookup

Post by HansV »

You can either use formulas such as

=VLOOKUP("D123", 'Other Sheet'!$A$2:$J$1000, 2, FALSE)
=VLOOKUP("D123", 'Other Sheet'!$A$2:$J$1000, 3, FALSE)
...
=VLOOKUP("D123", 'Other Sheet'!$A$2:$J$1000, 10, FALSE)

in 9 adjacent columns, or, if the formulas are in columns B to J:

=VLOOKUP("D123", 'Other Sheet'!$A$2:$J$1000, COLUMN(), FALSE)
Best wishes,
Hans

bradjedis
4StarLounger
Posts: 538
Joined: 30 Mar 2010, 18:49
Location: United States

Re: Using Vlookup

Post by bradjedis »

Thanks!