Using a Named Range to apply to a Lookup Formula

kiwiorn

New Member
Joined
Jul 30, 2007
Messages
5
I want to create as short a formula as possible using a lookup to determine which named range to look up depending on the circumstance.

ie. Budget, Actual, Trended as examples of 3 similar types of information for a given year. Each one has been named as a range. I want to provide an option of drivers (say, Budget, Actual, Trended) so that the user can select which driver is most appropriate, and the formula looks up which named range to use and then returns the correct monthly value.

There are actually many more than 3 options hence the need to use a lookup table to determine which named range to look up.

Example: The following part of the formula returns the correct named range, but it fails to look up the data within that named range.

=VLOOKUP($B6,VLOOKUP($R6,DriverRange,2,FALSE),E$3+2,FALSE)
where B6 provides a unique code reference, and the formula VLOOKUP($R6,DriverRange,2,FALSE) correctly provides "RollBud" which is a named range. However, the formula appears not to look up the named range. Does anyone know why not, and how I can correct this?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You need to use INDIRECT(). If I've followed the bouncing ball correctly, you need sumpin like:<ul>[*]=VLOOKUP($B6,indirect(VLOOKUP($R6,DriverRange,2,FALSE)),E$3+2,FALSE) [/list]
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

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