dependent multiple drop-down menu [formula only, no VBA please]

Beatrice

Board Regular
Joined
Sep 17, 2019
Messages
85
Office Version
  1. 2019
Platform
  1. Windows
Hi gurus,

I wanted to create a dependent multiple drop-down menu, but since the company is using different versions of excel, also in Mac & PC. so I need it in formula only, no VBA please.
Is it possible to do so? Thanks to advise. ?‍♀️


TypeNameCountryPriceTypeNameCountryPrice
MeatPorkChina32.00
MeatChickenBrazil28.00
MeatChickenChina24.00
MeatBeefChina38.00
MeatBeefAustralia42.80
MeatBeefJapan68.00
FruitOrangeChina2.99
FruitOrangeAustralia4.99
FruitOrangeUSA3.99
FruitAppleChina3.99
FruitAppleJapan6.99
FruitAppleUSA5.99
FruitBananaPhilippines6.99
 

Attachments

  • Capture.PNG
    Capture.PNG
    19 KB · Views: 15

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi, I have tried the above method but it seems not function as what I wished for.
May I rephrase again, knowing all header " Type" , " Name" , "Country" and " Price" will have different information update, and ultimately I wish to have the 2nd table with drop down menu according to all update, without duplication, sorted by alphabetical order, and ignore blank. Here is what I imagined for:
Capture.PNG

Is it possible to do so? Many thanks for your advice ?‍♀️ ?‍♀️ ?‍♀️
 
Upvote 0
Hi, I have tried the above method but it seems not function as what I wished for.
May I rephrase again, knowing all header " Type" , " Name" , "Country" and " Price" will have different information update, and ultimately I wish to have the 2nd table with drop down menu according to all update, without duplication, sorted by alphabetical order, and ignore blank. Here is what I imagined for: View attachment 37369
Is it possible to do so? Many thanks for your advice ?‍♀️ ?‍♀️ ?‍♀️
I'm sure this is possible but I am hoping someone who can beat me for solution ?
 
Upvote 0
Here it is. Maybe others can do better. You can put that orange intermediate table in other sheet to hide and look cleaner.
Validation with Unique.xlsm
ABCDEFGHIJ
1TypeNameCountryPriceTypeNameCountryPrice
2MeatPorkChina32FruitAppleChina3.99
3MeatChickenBrazil28
4MeatChickenChina24
5MeatBeefChina38MeatOrangeChina
6MeatBeefAustralia42.8FruitAppleJapan
7MeatBeefJapan68 BananaUSA
8FruitOrangeChina2.99   
9FruitOrangeAustralia4.99   
10FruitOrangeUSA3.99   
11FruitAppleChina3.99   
12FruitAppleJapan6.99   
13FruitAppleUSA5.99   
14FruitBananaPhilippines6.99   
15
Sheet1
Cell Formulas
RangeFormula
I2I2=SUMPRODUCT((Table1[Type]=F2)*(Table1[Name]=G2)*(Table1[Country]=H2),Table1[Price])
F5:F14F5=IFERROR(INDEX(Table1[Type],MATCH(0,COUNTIF($F$4:F4,Table1[Type]),0)),"")
G5:G14G5=IFERROR(INDEX(Table1[Name],MATCH(0,COUNTIF($G$4:G4,Table1[Name])+(Table1[Type]<>$F$2),0)),"")
H5:H14H5=IFERROR(INDEX(Table1[Country],MATCH(0,COUNTIF($H$4:H4,Table1[Country])+(Table1[Type]<>$F$2)+(Table1[Name]<>$G$2),0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Data Validation
CellAllowCriteria
F2List=OFFSET($F$5,,,COUNTIF($F$5:$F$14,"?*"))
G2List=OFFSET($G$5,,,COUNTIF($G$5:$G$14,"?*"))
H2List=OFFSET($H$5,,,COUNTIF($H$5:$H$14,"?*"))
 
Upvote 0
Here it is. Maybe others can do better. You can put that orange intermediate table in other sheet to hide and look cleaner.
Thanks Zot! You are a life safer! :)

Capture.PNG


I tried to adapt to the database but there is duplicated Name and not yet sort in alphabetical order, do you have any clue to fix it?
Many thanks.
 
Upvote 0
Thanks Zot! You are a life safer! :)

View attachment 37511

I tried to adapt to the database but there is duplicated Name and not yet sort in alphabetical order, do you have any clue to fix it?
Many thanks.
You mentioned about sorting but since it is something I haven't done for more that two validations, I really have to scratch my head and dig here and there. So, forgotten about sorting ?

There are probably more simplified method with later Excel but since you mentioned there are mixed versions of Excel, my old 2016 version I think still cover down to 2007 I hope. I will try to sort later but hope someone else beat me.

I'm about to get ready to back home now
 
Upvote 0
What you can do is to sort data list. This can be done automatically each time you add data to the list. You can use Worksheet event macro

 
Upvote 0
You mentioned about sorting but since it is something I haven't done for more that two validations, I really have to scratch my head and dig here and there. So, forgotten about sorting ?

There are probably more simplified method with later Excel but since you mentioned there are mixed versions of Excel, my old 2016 version I think still cover down to 2007 I hope. I will try to sort later but hope someone else beat me.

I'm about to get ready to back home now
No worries, Thanks anyway. Have a good day :)
 
Upvote 0
not sure if it helps but I did something similar last week and just added "=SORT(formula you already have,1,1,false) to sort it alphabetically. the 1,1,false part is ascending/descending

I also used slightly different formula to the above - it might not help you if you already have a solution but maybe it will help others?

=UNIQUE(FILTER(range where answer is, range to look in=result you're looking for))
e.g. =UNIQUE(FILTER(A1:A100, B1:B100=C1))
 
Upvote 0

Forum statistics

Threads
1,224,045
Messages
6,176,061
Members
452,701
Latest member
rfhandel

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