Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I'd really appreciate it if someone can help me solve the following problem i'm having. I want to do a vlookup where there are 12 ranges to choose from (i have 12 ranges - where the ranges are named for each month jan - dec). I want to be able to select the range based on the current month (chosen from a drop down list in a specific cell). however when i refer the the cell with the current month, vlookup thinks i am specifying that cell as the range (what i want is the range which the cell is currently showing). I have tried the text() and concatenate() functions to return the range name, but this doesnt seem to work. the function i want show go like this; =VLOOKUP(C27,RANGENAME FROM CELL B2, 2,FALSE) where RANGENAME FROM CELL B2 is a function that returns the name of a range based on the currently selected month in cell B2 - which is a dropdown list with january - december. Hope some wonderful person out there can help me. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=VLOOKUP(C27,RANGENAME FROM CELL B2, 2,FALSE)
Try: =VLOOKUP(C27,INDIRECT(B2),2,FALSE) where B2 contains the defined range name -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "confused" wrote: Hi, I'd really appreciate it if someone can help me solve the following problem i'm having. I want to do a vlookup where there are 12 ranges to choose from (i have 12 ranges - where the ranges are named for each month jan - dec). I want to be able to select the range based on the current month (chosen from a drop down list in a specific cell). however when i refer the the cell with the current month, vlookup thinks i am specifying that cell as the range (what i want is the range which the cell is currently showing). I have tried the text() and concatenate() functions to return the range name, but this doesnt seem to work. the function i want show go like this; =VLOOKUP(C27,RANGENAME FROM CELL B2, 2,FALSE) where RANGENAME FROM CELL B2 is a function that returns the name of a range based on the currently selected month in cell B2 - which is a dropdown list with january - december. Hope some wonderful person out there can help me. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=vlookup(c27,indirect(b2),2,false)
confused wrote: Hi, I'd really appreciate it if someone can help me solve the following problem i'm having. I want to do a vlookup where there are 12 ranges to choose from (i have 12 ranges - where the ranges are named for each month jan - dec). I want to be able to select the range based on the current month (chosen from a drop down list in a specific cell). however when i refer the the cell with the current month, vlookup thinks i am specifying that cell as the range (what i want is the range which the cell is currently showing). I have tried the text() and concatenate() functions to return the range name, but this doesnt seem to work. the function i want show go like this; =VLOOKUP(C27,RANGENAME FROM CELL B2, 2,FALSE) where RANGENAME FROM CELL B2 is a function that returns the name of a range based on the currently selected month in cell B2 - which is a dropdown list with january - december. Hope some wonderful person out there can help me. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Named Ranges | Excel Worksheet Functions | |||
Using single cell reference as table array argument in Vlookup | Excel Worksheet Functions | |||
VLOOKUP Limitations | Excel Worksheet Functions | |||
compare unique identifiers in multiple ranges | Charts and Charting in Excel | |||
Named dynamic ranges, copied worksheets and graph source data | Charts and Charting in Excel |