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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,834
Members
449,051
Latest member
excelquestion515

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