Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Gaurav wrote:
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) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Look in the help index for INDIRECT and be aware that it does not work on
closed files. Or, you could use editreplace and still use on closed. -- Don Guillett Microsoft MVP Excel SalesAid Software "Gaurav" wrote in message ... 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 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The INDIRECT function is probably what you're looking for. If the sheet name
is in cell A1, you would replace [Book1]August09!$A$1:$E$11 with INDIRECT("'[Book1]"&A1&"'!$A$1:$E$11") . The entire VLOOKUP formula would therefore be =VLOOKUP(A17,INDIRECT("'[Book1]"&A1&"'!$A$1:$E$11"),2,FALSE). Note that Book1 has to be open for this formula to work properly. -- Rob Jordan Powered by Creative Laziness "Gaurav" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup returning NA when referencing cell data to another sheet | Excel Worksheet Functions | |||
Can I find a cell with vlookup formula on sheet | Excel Worksheet Functions | |||
Vlookup a part of a cell value in another sheet | Excel Worksheet Functions | |||
Vlookup a part of a cell value in another sheet | Excel Worksheet Functions | |||
Using a cell reference of a sheet in Vlookup | Excel Worksheet Functions |