v look up changes range

ss

New Member
Joined
Aug 8, 2002
Messages
19
can the v look up function choose different same ranges from differnt work sheets through may be a drop down menu of dates.
for example different work sheets for differnt dates and then a drop down menu chooses the range in the look up function?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
Have a look at using the indirect function in the third vlookup argument. Note that indirect requires the workbook you are referring to to be open.
 

ss

New Member
Joined
Aug 8, 2002
Messages
19
sorry
do not comprehend the solution if you could elaborate on it pls.
 

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
let say you have
=VLOOKUP(A6,Sheet2!$A$1:$B$10,2,0)

but you want to change the table you are looking up from.
if you use
=VLOOKUP(A6,INDIRECT(A1&"!$A$1:$B$10"),2,0)
and A1 contains the value "sheet2", it will look to sheet 2. Change the value in A1 to sheet3, it will look to sheet 3. If you use indirect to reference another workbook, the workbook must be open. You can use validation on A1 as you say to limit the choices to valid ones.

(should have second vlookup argument above)
This message was edited by IML on 2002-10-16 19:24
 

Forum statistics

Threads
1,144,307
Messages
5,723,629
Members
422,505
Latest member
Noar33

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