Choosing specific table based on drop-down list selection

broadhead077

New Member
Joined
Jul 24, 2014
Messages
3
I'm trying to write a formula that will perform a calculation based on several inputs that are selected on a "data input" tab in my workbook. I have a tab with many tables that are differentiated mainly by race and gender. I have drop-down lists that allow the user to select "Male" or "Female" for the gender and "All", "White", "Black", etc. for race.

Some of the tables I have are separated as "White Males", "Black Females", and "All Males," just to name a few. I have a working formula that will pull data from a table based on other inputs, such as age and education level. My problem is that this formula only pulls data from a single table based on which table I had hard-coded into the formula. Here is the formula I have so far:

=INDEX(tbl_lpe_black_females_employed,MATCH(demo_education,tbl_lpe_black_females_employed[Education Level],0),3)

where "tbl_lpe_black_females_employed" is the specific table that I would like to be able to automatically change in the formula.

I would like for the user to be able to enter "White" and "Females", for example, and have those selections automatically update my above formula to select data from the appropriate table. I've searched and searched for an example of this but haven't had any luck.

Hope this all makes sense. If I need to post any more examples or formulas, I wil do so.

Thanks in advance!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Watch some tutorials on the CHOOSE function. That works exactly the way you want (it sounds like).
Index will do it too but I understand CHOOSE is easier and better.

You would specify the criteria in like a VLOOKUP and the look up table would be the one you CHOOSE it to look at based on the table name (or criteria).
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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