How to make a list conditional upon another list?

RedMisterExcel

New Member
Joined
Oct 26, 2021
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
Hey guys, potentially dumb question, but I want to create a drop-down list that can spawn a selection of further drop-down lists from another cell contingent on the entry in the first list.

For example: List A = Fruit, Vegetables, Drinks

List B can be one of these three depending on which of the entries in List A was selected first: Apples, Oranges, Bananas; Celery, Broccoli, Carrots; or Pepsi, Coke, Sprite

Is that possible to do?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
MrExcelPlayground13.xlsx
ABCDE
1ItemTypeTypeItemFruit
2AppleFruitFruitAppleOrange
3OrangeFruitVegetableOrange
4BananaFruitDrinkBanana
5CeleryVegetable
6CroccoliVegetable
7CarrotsVegetable
8PepsiDrink
9CokeDrink
107upDrink
Sheet20
Cell Formulas
RangeFormula
C2:C4C2=UNIQUE(B2:B10)
D2:D4D2=FILTER(A2:A10,B2:B10=E1)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
E1List=C2#
E2List=D2#
 
Upvote 0
MrExcelPlayground13.xlsx
ABCDE
1ItemTypeTypeItemFruit
2AppleFruitFruitAppleOrange
3OrangeFruitVegetableOrange
4BananaFruitDrinkBanana
5CeleryVegetable
6CroccoliVegetable
7CarrotsVegetable
8PepsiDrink
9CokeDrink
107upDrink
Sheet20
Cell Formulas
RangeFormula
C2:C4C2=UNIQUE(B2:B10)
D2:D4D2=FILTER(A2:A10,B2:B10=E1)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
E1List=C2#
E2List=D2#

Thanks man, but do you mind explaining to me how it works? I want to learn to catch a fish so I don't have to keep begging everyday if you know what I mean :)
 
Upvote 0
Sure...
Columns A and B are your data. C2 is an array formula that takes the unique values in B - and 'spills' into C3 and C4. If there were more than 3 unique values in B, it would spill further.

In E1, there is Data Validation rule - picking from a List in that spilling array - C2# means to take whatever is the whole unique list from B. That drop down changes the same as C2.

In D2, it filters column A by what is selected in E1. So when "Fruit" is selected in E1, D2 filters all of A for anything with "Fruit" in B.

Then the E2 data validation rule - picks from the list of D2# - another spilling array.
 
Upvote 0
Sure...
Columns A and B are your data. C2 is an array formula that takes the unique values in B - and 'spills' into C3 and C4. If there were more than 3 unique values in B, it would spill further.

In E1, there is Data Validation rule - picking from a List in that spilling array - C2# means to take whatever is the whole unique list from B. That drop down changes the same as C2.

In D2, it filters column A by what is selected in E1. So when "Fruit" is selected in E1, D2 filters all of A for anything with "Fruit" in B.

Then the E2 data validation rule - picks from the list of D2# - another spilling array.
What does putting a # behind a cell do?
 
Upvote 0
Are you sure you have 365 rather than 2019 or an earlier version?
 
Upvote 0
In that case I suggest that you update your profile. ;)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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