take sheet name from a cell in VLOOKUP

  • Thread starter Thread starter Gaurav
  • Start date Start date
G

Gaurav

Hi,

is it possible to use the value from a cell as the sheet name in a VLOOKUP
function?

for example, the formula is -
=VLOOKUP(A17,[Book1]August09!$A$1:$E$11,2,FALSE). In this formula, the
"August09" part is the one that I want to be able to select in a dropdown.
Whatever month I select in the dropdown, the formula should take the data
from the sheet named as the one I selected.

any help would be appreciated.

Thanks
 
Gaurav said:
Hi,

is it possible to use the value from a cell as the sheet name in a VLOOKUP
function?

for example, the formula is -
=VLOOKUP(A17,[Book1]August09!$A$1:$E$11,2,FALSE). In this formula, the
"August09" part is the one that I want to be able to select in a dropdown.
Whatever month I select in the dropdown, the formula should take the data
from the sheet named as the one I selected.

any help would be appreciated.

Thanks

Assuming your drop down is in B17:

=VLOOKUP(A17,INDIRECT("[Book1]"&B17&"!$A$1:$E$11"),2,FALSE)
 
Look in the help index for INDIRECT and be aware that it does not work on
closed files. Or, you could use edit>replace and still use on closed.
 
Back
Top