Text Functions and setting up a dynamic VLookup

Yellowfin

New Member
Joined
Jul 8, 2002
Messages
7
Good morning,

I'm struggling with a vlookup() that I want to make a bit more dynamic.

I have a series of named ranges that I'd like to feed into the Table Array field (the 2nd vlookup parameter). The names of the range are all of the form Rates_X where "X" can be 1,2,3, or 4. The X value appropriate for the row where I'm placing the lookup can be determined easily. So I tried to create a new cell that was ="Rate_"&X and then using a T() function with that cell reference as the Table Array. No luck. I get a #Value error which indicates it is not intrpretting the text as a name.

Any idea how I can get the function to recognize the input as a name?

Thanks in advance.


Jim
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
=VLOOKUP(lookup-value,INDIRECT("Rate_"&X),col-index,match-type)

where X is a value that completes the name of the range of interest.
This message was edited by aladin akyurek on 2002-09-08 03:31
 
Upvote 0
Here is an example using Aladin's Formula
Book1
ABCDEFGHI
1TypeTbl NumTable Rate_1Table Rate_2
2Circle2TypeStyleTypeStyle
3RedCircleRedCircleGreen
4GreenSquareBlueSquareYellow
...
 
Upvote 0
Thank You!

I knew there was another function involved, I just couldn't figure out that it was Indirect().

As always, thanks.



Jim
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,607
Members
449,037
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top