Getting VLOOKUP Column number to change when dragged

Osarky

New Member
Joined
Jul 5, 2019
Messages
1
I'm creating a file where a company name is selected from a drop-down menu at the top, and id like it to display the full column of corresponding values for the company from the raw data sheet.

I originally used (=VLOOKUP($B$1,Table5,3,FALSE) changing the 3 to 4,5,6, etc for each column, however with many companies and roughly 80 values thats no longer viable. Is there a way to make that number 3 (column number) to change as I drag the formula down?

Thank you for your help!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hey,

Instead of using a static 3 as the column number, try ROW(A3), when you drag it down you'll get ROW(A4), ROW(A5) etc... which translates as 4, 5, etc (As ROW only takes the number at the end)

=VLOOKUP($B$1,Table5,ROW(A3),FALSE)
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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