Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 193
Default vlookup - choice of ranges

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   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default vlookup - choice of ranges

=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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup - choice of ranges

=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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Named Ranges Joe Gieder Excel Worksheet Functions 2 February 16th 06 02:31 AM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
compare unique identifiers in multiple ranges bawilli_91125 Charts and Charting in Excel 1 November 30th 04 07:34 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 06:19 PM


All times are GMT +1. The time now is 01:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"