using a variable range name for the vlookup array definition

daviddillon

New Member
Joined
Nov 29, 2005
Messages
3
I'm trying to use a range name as the "array" within a vlookup formula. I can type in a range name and it works, but I want the array to be a variable range name based on the result of another cell.

I've spent too much time on this already...any ideas?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
David

Without further info all I can suggest is INDIRECT.

=VLOOKUP(A2, INDIRECT(B1), 3, 0)

Where B1 has the named range.
 
Upvote 0
Thanks...that works, but I had to use "TRUE" instead of "0" as the range_lookup value.

Thank you so much!

David
 
Upvote 0
David

You only use TRUE in a VLOOKUP if you are looking for the closest match.

Is that what you're doing?
 
Upvote 0
Yes...I'm looking for the closest match within a rate table that looks like this:

Low High Rate
1 10 $10
11 20 $20
21 30 $30
etc......

So if 11 or 19 is the lookup value, $20 is the returned value from the lookup function.
 
Upvote 0

Forum statistics

Threads
1,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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