Data Validation Dynamic List

Koza84

New Member
Joined
Mar 26, 2017
Messages
31
Hi,

I am looking for solution for my drop down data validation menu, it would be in column B in sample data ( "Units"). What I am trying to do is to have dynamic named range to choose available unit types based on if data has been filled in in columns E to I

For example in case of "Apple", dynamic named range would be Grams,Cup,Whole, because there columns are filled in. For Banana it Grams only. For Strawberry it would be Grams,Cup.

So If I choose food in column A then in column B would have that dynamic named range for unit types available based on type of food in column A. Drop down data validation would be also in few more columns.

Is there any way to achieve this?

FoodUnitsGramsTspTbsCupWhole
AppleApple1100120
BananaBanana1
AppleStrawberry180
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Until data validation gets an upgrade that works with array formulas, you will need to set it up as shown in the link below with a list of valid selections for each food type.

 
Upvote 0
Until data validation gets an upgrade that works with array formulas, you will need to set it up as shown in the link below with a list of valid selections for each food type.

Thanks. This method will not allow spaces in the name of my food. Is there any work around this?
 
Upvote 0
You can either create the named ranges without spaces, or use underscores instead, then use =INDIRECT(SUBSTITUTE( to change the text in the cell as needed.
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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