Excel multiple look ups

Rpritts

New Member
Joined
Sep 21, 2006
Messages
21
I am doing a spreadsheet comparing date with 30+columns I want to do a look up that not fixed, ie Lookup(Value, Data, output 1), Lookup(Value, Data, output 2), ....Lookup(Value, Data, output 30), Is there way to change output with out typing the differnt output ranges and tell excel to pull a value from the table?

Rob
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Welcome to the Board!

Instead of VLOOKUP(Criteria,Range,Number,False)

you can use VLOOKUP(Criteria,Range,COLUMN(),False)

Where the Column() formula will automatically adjust as it's copied across. Substitute ROW() if you're copying down. To adjust you can add/subtract from the Column/Row number as necessary. I.E. COLUMN()+1.

Hope that helps,

Smitty
 

Forum statistics

Threads
1,136,309
Messages
5,674,998
Members
419,541
Latest member
freddyboots

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
Top