Stupid Question of the day. (re: VLOOKUP)

SuperSean

New Member
Joined
Apr 30, 2002
Messages
45
Hi, sorry this is probably a lame question.

Is there any way to get VLookup (or any other function/formula) to give me all the info in a row instead of just what matches?

I have VLOOKUP working just fine, I want to display multiple cells however.

Thanks,
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Heya,

I have food suppliers costs, product names id # ect in a big big list, needed to pull info from the big list and stick it on a smaller list for other people to see.
I eventually figured it out, though there may have been a quicker way, I did a vlookup for each catagory based on the criteria of the original search.
 
Upvote 0
Hey Sean,

I'm pretty sure you'll need a vlookup per column of data you're pulling in. You may be able to moph a single copy-able formula by automating the column reference in the vlookup.

For example instead of:

=Vlookup(A2,Sheet2!A2:E200,2,false) --where you'd just change the ,2, to ,3, in the next column over)

try:

=Vlookup(A2,Sheet2!A2:E200,Column(Sheet2!A2)+1,false)

The advantage would be that you can copy this Vlookup and pull the correct data.

Tweak where necessary
Adam
 
Upvote 0
Thanks Adam!

You were correct, this is what I did:

=VLOOKUP(Sheet3!$A10,Sheet1!$A$2:$E$3104,1,FALSE)

I then just draged it down to the other cells I needed to , copied it across ect...


Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top