VLOOKUP, CHOOSE, MATCH, Named Ranges - Is there a more elegant way?

alaskanpilot

Board Regular
Joined
Sep 27, 2004
Messages
104
I have a sheet with numerous table arrays, each of which is represented by a named range. Then, I have another variable called "tailNo" which, based on its value, requires a certain table array.

I want to create a formula that takes the known tailNo value, then performs a vlookup using proper table array that belongs with that tailNo value.

It would look something like this:

=VLOOKUP(tailNo, *table array here is based on what value tailNo holds* ,2,FALSE)

So far I came up with this sloppy formula:

=VLOOKUP(tailNo,CHOOSE(MATCH(tailNo,tailList,0),fuelLoading320,fuelLoading321,fuelLoading322,fuelLoading361),2) where four named ranges are listed as choices.

This chooses the correct table array, but as the number of possibilities for "tailNo" grow, so does this formula and its choices. So then I tried using a helper cell: I set up C13 with a formula to display the name of the named range that needs to be used by the VLOOKUP. But when I tried to substitute C13 for the table array, the VLOOKUP thinks C13 is the array, and not the named range in C13.

I hope this makes sense; it's a hard one to describe. Thanks for any help or ideas!
 

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.
Hi,

I'm please it helped and thanks for the feedback.

You will find that Mike and MrExcel have videos that will solve most Excel formula problems, happy viewing!

Ak
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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