Is it possible to create a dropdown list Based on named tables?

Dugzilla

New Member
Joined
Oct 11, 2023
Messages
25
Office Version
  1. 2021
Platform
  1. MacOS
I have 3 tables: Table_1, Table_2, Week_3

All 3 tables are of the same structure and format.

The only difference being the data contained in the tables.

Is it possible to create a dropdown list that would give me a list of the 3 tables, THEN populate a worksheet with the appropriate data located in the table selected?

For example: Week_1 has the same structure as Week_2 and Week_3. If I select Week_1, I would only see the data from that particular table.

Please let me know if you require additional information.

Thank you so much.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You could do something like this:

Book3
ABCDEFGHIJK
1Col1Col2Col3Col1Col2Col3Col1Col2Col3
2a12u12m12
3b23v24n27
4c35w38o31
5d47x416p42
6e511y532q52
7z664r68
8s71
9
10# of tablesNamesDropDownDisplayed Table
113Week_1Week_2u12
12Week_2v24
13Week_3w38
14x416
15y532
16z664
17
Sheet2
Cell Formulas
RangeFormula
B11:B13B11="Week_"&SEQUENCE(A11)
F11:H16F11=INDIRECT(D11)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F11:H20Expression=F11<>""textNO
Cells with Data Validation
CellAllowCriteria
D11List=B11#


I created 3 tables named Week_1, Week_2, and Week_3. I then put the number of tables in A11, and created a function to get the names in B11. Then I created a Data Validation in D11 using B11 as the list. Then you can choose the table name in D11, and the INDIRECT formula in F11 will return the table you want. I used Conditional Formatting around the F11:H20 range to show the outline if the cells aren't empty. This is because the INDIRECT only shows the data, not the formatting. So I used the CF to get a table grid, but that's up to you. If you really want, you can use CF to get the alternating colored bars too. Hope this helps!
 
Upvote 0
Another option. If your tables are single column, name your tables the same as the table column header, and make those headers the choices for the initial dropdown. Like this:
Book1
ABCDEFG
1Week_1Week_2Week_3Week_3
2wk1 option 1wk2 option 1wk3 option 1wk3 option 1
3wk1 option 2wk2 option 2wk3 option 2
4wk1 option 3wk2 option 3wk3 option 3
5
Sheet1
Cells with Data Validation
CellAllowCriteria
G1ListWeek_1,Week_2,Week_3
G2List=INDIRECT($G$1)


1706234484225.png

1706234506338.png


1706234530133.png
 
Upvote 0
Solution
Thank you for the reply. I will work on this today and let you know!
 
Upvote 0
Kevin 9999's solution worked best for me. That is so cool and will save me so much time. Thank you very much for your help.
 
Upvote 0
I'm sorry Kevin9999, but one more question. Not needing information from all columns, when I do an INDEX MATCH of the table it returns erroneous data. Is that due to the INDIRECT function?

VLOOKUP works.
 
Upvote 0
I'd really need to see the full formula you're using, as well as your actual sheet. Are you able to post your sheet using the XL2BB add in?
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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