Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sawhney
 
Posts: n/a
Default Convert text in cell to a range name for formula

Suppose cell A1 contains a string that could be Table1, Table2, or Table3.
And that I have a vlookup for which I want to use the table specified in A1.
How do I specify that A1 represents a Table name and is not a table itself?
I can imagine a function of =namedrange(a1) which would return the range name
of Table1, Table2, or Table3 in vlookup(a10,namedrange(a1),2). But I cannot
find such a function. Does it exist? If not, what are the alternatives?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Doug Glancy
 
Posts: n/a
Default Convert text in cell to a range name for formula

Sawhney,

If I understand correctly, then Indirect will work:

=VLOOKUP(A10,INDIRECT(A1),2)

I should mention, Indirect does not work on closed workbooks.

hth,

Doug

"Sawhney" wrote in message
...
Suppose cell A1 contains a string that could be Table1, Table2, or Table3.
And that I have a vlookup for which I want to use the table specified in
A1.
How do I specify that A1 represents a Table name and is not a table
itself?
I can imagine a function of =namedrange(a1) which would return the range
name
of Table1, Table2, or Table3 in vlookup(a10,namedrange(a1),2). But I
cannot
find such a function. Does it exist? If not, what are the alternatives?



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
count by specific text color in range of cell Tii99 Excel Discussion (Misc queries) 2 April 4th 06 09:58 AM
Can a calculation ignore text if it occurs in formula's cell range Sally Excel Worksheet Functions 2 November 18th 05 04:48 PM
Text in formula bar is not displaying in cell Mike Excel Discussion (Misc queries) 0 August 29th 05 09:47 PM
Adding Cell Range with Text JohnHill Excel Worksheet Functions 2 August 1st 05 03:30 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM


All times are GMT +1. The time now is 04:26 AM.

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"