Create Dependent Data Validation List

astrodon

New Member
Joined
Dec 29, 2019
Messages
32
Office Version
  1. 365
  2. 2010
  3. 2007
Platform
  1. Windows
I am using Excel 365 on a Windows 11 laptop.

I have a lookup table having ~14,000 rows with 122 columns. What I am interested in two particular columns as shown below.
1691705154435.png

I have a data entry sheet that depends on these two columns in a table (tblNutrients)

From the data entry table I wish to have only the Food Name items to show in the drop down based on the Category selection. There are 14,000 food names to choose from in 22 different categories. Everything I have seen online for dependent validation lists is to create a new table for each possible category. That would add an additional 22 tables totaling ~685,000 items. Not very efficient.

1691705355918.png
1691705154435.png1691705355918.png

Any help would be appreciated

TIA

doco
 

Attachments

  • 1691704956766.png
    1691704956766.png
    53.3 KB · Views: 9
  • 1691705297254.png
    1691705297254.png
    27.4 KB · Views: 9

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
That would add an additional 22 tables totaling ~685,000 items. Not very efficient.
It won't be that many, there are just 14,000 items divided into 22 columns.
Check out this tutorial from Mynda Treacy from My Online Training Hub:
Easy Dynamic Dependent Data Validation Two Ways
with this method the helper table will be created by formula.

Another option is using macro, you only need 1 column as helper table, check out this article:
3 or More Dependent Data Validation, with VBA, easy to set up

Additionally, you might want searchable functionality on the data validation, considering the size of your data. Here's an add-in that I've created to provide that functionality:
Excel add-in: “Search deList”
 
Upvote 0
Thanks. I will look into it. I did get a solution but it involved creating a new table with the 22 food groups as column headers. Then moving the foods for each group to the table. Pretty messy way in my opinion.
I don't understand why SQL has been abandoned by excel. A simple select food from table where group = group_dropdown order by food. Done deal.
Much to learn this one. Yoda
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,126
Members
452,381
Latest member
Nova88

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