Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Named Range references in function formulas

I have a spreadsheet in which I have a series of named ranges that each refer
to a series of cells on a given row of the spreadsheet. For instance
row101=Development!$C$2:$M$2,row102=Development!$C $3:$M$3, etc.

I am interested in using these "Names" in "Match" and "Lookup" functions.
They work fine when I type the names in the functions or when I select the
corresponding ranges. However what I was really hoping to be able to do was
to have a user enter the numeric part of the "Name" in a cell (i.e. 101) and
somehow be able to use this value to "generate" the "Name" and then use that
in the "Match" & "Lookup" functions. I can "generate the "Name" using the
concatenate function but it doesn't work in the "Match" and "Lookup"
functions - they result in "# value" errors.

I am convinced there is something simple that I am missing but can't figure
out how to get this to work. It may be that this approach won't work at all,
if this is the case any suggestions on how I might accomplish this type of
lookup based on a user input value would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Named Range references in function formulas

Use the Indirect() function.

For example:
rng1 = A1 to B10
rng2 = A11 to B20

Range number (either 1 or 2) entered into C1.

=VLOOKUP(25,INDIRECT("rng"&C1),2,0)


--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Bob" wrote in message
...
I have a spreadsheet in which I have a series of named ranges that each
refer
to a series of cells on a given row of the spreadsheet. For instance
row101=Development!$C$2:$M$2,row102=Development!$C $3:$M$3, etc.

I am interested in using these "Names" in "Match" and "Lookup" functions.
They work fine when I type the names in the functions or when I select the
corresponding ranges. However what I was really hoping to be able to do was
to have a user enter the numeric part of the "Name" in a cell (i.e. 101) and
somehow be able to use this value to "generate" the "Name" and then use that
in the "Match" & "Lookup" functions. I can "generate the "Name" using the
concatenate function but it doesn't work in the "Match" and "Lookup"
functions - they result in "# value" errors.

I am convinced there is something simple that I am missing but can't figure
out how to get this to work. It may be that this approach won't work at
all,
if this is the case any suggestions on how I might accomplish this type of
lookup based on a user input value would be appreciated.


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
updating formulas with named cell references in a different worksh sjSQW Excel Worksheet Functions 0 May 21st 07 01:49 PM
Named formulas in CHOOSE need to be Relative references when paste bill ch Excel Worksheet Functions 2 April 10th 06 04:13 PM
Confused about relative references in named formulas [email protected] Excel Worksheet Functions 1 March 22nd 06 10:40 PM
How to find all formulas that used a certain named range Laurence Lombard Excel Discussion (Misc queries) 2 October 25th 05 08:15 AM
dynamic named range function MJB Excel Worksheet Functions 1 August 5th 05 05:56 AM


All times are GMT +1. The time now is 05:55 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"