Multiple Drop-down menu

nikolacm

New Member
Joined
Mar 31, 2021
Messages
31
Office Version
  1. 365
Platform
  1. Windows
I have a table which includes number of rooms, type, level, surface and view. This table consists of 22 rows as the total number of its units. I try to prepare a table that will summarize the total number of units in terms of room type and view. Since each room type has different view I want to prepare a drop down menu for every view category in terms of each room type. For example room type A has rooms with both garden and sea view. As a result the drop down menu should include garden and sea view. Any ideas ?

s/nRoom NumberRoom TypeLevelSurface (m²)ViewRoom TypeViewUnits
11131131st Floor55PoolA
2G20AGround Floor23GardenA1
3G21AGround Floor23GardenB
4G22AGround Floor23GardenB1
5120A1st Floor23SeaC
6220A2nd Floor23SeaC1
7119A11st Floor23SeaD
8219A12nd Floor23SeaFamily
9319A13rd Floor23Sea113
10110B1st Floor26,5PoolSuite
11111B1st Floor26,5PoolF
12114B1st Floor26,5PoolF1
13210B2nd Floor26,5PoolE
14211B2nd Floor26,5PoolZ
15212B2nd Floor26,5PoolH
16213B2nd Floor26,5Pool
17214B2nd Floor26,5Pool
18310B3rd Floor26,5Pool
19311B3rd Floor26,5Pool
20312B3rd Floor26,5Pool
21313B3rd Floor26,5Pool
22314B3rd Floor26,5Pool
 
i have used a pivot table
although - if you posted the expected results - textjoin, with filter may work

not sure how you want the dropdown to work - i will post later an example - using filter

room-view-ETAF.xlsx
ABCDEFGHIJKLM
1s/nRoom NumberRoom TypeLevelSurface (m²)View
211131131st Floor55PoolRoom TypeViewCount of View
32G20AGround Floor23Garden113Pool1
43G21AGround Floor23GardenAGarden3
54G22AGround Floor23GardenSea2
65120A1st Floor23SeaA1Sea3
76220A2nd Floor23SeaBPool13
87119A11st Floor23SeaGrand Total22
98219A12nd Floor23Sea
109319A13rd Floor23Sea
1110110B1st Floor26,5Pool
1211111B1st Floor26,5Pool
1312114B1st Floor26,5Pool
1413210B2nd Floor26,5Pool
1514211B2nd Floor26,5Pool
1615212B2nd Floor26,5Pool
1716213B2nd Floor26,5Pool
1817214B2nd Floor26,5Pool
1918310B3rd Floor26,5Pool
2019311B3rd Floor26,5Pool
2120312B3rd Floor26,5Pool
2221313B3rd Floor26,5Pool
2322314B3rd Floor26,5Pool
Sheet1


this share copy will only be available for a few days
 
Upvote 0
so this version
has a dropdown for room type
then gives the views available and a count of the units

so i use a datavalidation list for the dropdown l2 - based on the list in column S

then i use a filter to filter the results to only those with a room type from the drop down - then unique so it only shows once

then a countifs() to count how many units of the room type and view in the list

room-view-ETAF.xlsx
ABCDEFGHIJKLMNOPQRST
1s/nRoom NumberRoom TypeLevelSurface (m²)ViewRoom TypeViewUnitsData Val List
211131131st Floor55PoolRoom TypeViewCount of ViewAGarden3113
32G20AGround Floor23Garden113Pool1Sea2A
43G21AGround Floor23GardenAGarden3 A1
54G22AGround Floor23GardenSea2 B
65120A1st Floor23SeaA1Sea3 
76220A2nd Floor23SeaBPool13 
87119A11st Floor23SeaGrand Total22 
98219A12nd Floor23Sea 
109319A13rd Floor23Sea 
1110110B1st Floor26,5Pool 
1211111B1st Floor26,5Pool 
1312114B1st Floor26,5Pool 
1413210B2nd Floor26,5Pool 
1514211B2nd Floor26,5Pool 
1615212B2nd Floor26,5Pool 
1716213B2nd Floor26,5Pool
1817214B2nd Floor26,5Pool
1918310B3rd Floor26,5Pool
2019311B3rd Floor26,5Pool
2120312B3rd Floor26,5Pool
2221313B3rd Floor26,5Pool
2322314B3rd Floor26,5Pool
24
25
Sheet1
Cell Formulas
RangeFormula
M2:M3M2=UNIQUE(FILTER(F2:F23,C2:C23=L2))
S2:S5S2=UNIQUE(C2:C23)
N2:N16N2=IF(COUNTIFS($C$2:$C$23,$L$2,$F$2:$F$23,M2)=0,"",COUNTIFS($C$2:$C$23,$L$2,$F$2:$F$23,M2))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
L2List=$S$2:$S$5



also updated dropbox version
 
Upvote 1
so this version
has a dropdown for room type
then gives the views available and a count of the units

so i use a datavalidation list for the dropdown l2 - based on the list in column S

then i use a filter to filter the results to only those with a room type from the drop down - then unique so it only shows once

then a countifs() to count how many units of the room type and view in the list

room-view-ETAF.xlsx
ABCDEFGHIJKLMNOPQRST
1s/nRoom NumberRoom TypeLevelSurface (m²)ViewRoom TypeViewUnitsData Val List
211131131st Floor55PoolRoom TypeViewCount of ViewAGarden3113
32G20AGround Floor23Garden113Pool1Sea2A
43G21AGround Floor23GardenAGarden3 A1
54G22AGround Floor23GardenSea2 B
65120A1st Floor23SeaA1Sea3 
76220A2nd Floor23SeaBPool13 
87119A11st Floor23SeaGrand Total22 
98219A12nd Floor23Sea 
109319A13rd Floor23Sea 
1110110B1st Floor26,5Pool 
1211111B1st Floor26,5Pool 
1312114B1st Floor26,5Pool 
1413210B2nd Floor26,5Pool 
1514211B2nd Floor26,5Pool 
1615212B2nd Floor26,5Pool 
1716213B2nd Floor26,5Pool
1817214B2nd Floor26,5Pool
1918310B3rd Floor26,5Pool
2019311B3rd Floor26,5Pool
2120312B3rd Floor26,5Pool
2221313B3rd Floor26,5Pool
2322314B3rd Floor26,5Pool
24
25
Sheet1
Cell Formulas
RangeFormula
M2:M3M2=UNIQUE(FILTER(F2:F23,C2:C23=L2))
S2:S5S2=UNIQUE(C2:C23)
N2:N16N2=IF(COUNTIFS($C$2:$C$23,$L$2,$F$2:$F$23,M2)=0,"",COUNTIFS($C$2:$C$23,$L$2,$F$2:$F$23,M2))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
L2List=$S$2:$S$5



also updated dropbox version
Many thanks. This was what I was looking for. The sollution seems to be much simpler compared with my thoughts when I was preparing the case.
 
Upvote 0

Forum statistics

Threads
1,226,795
Messages
6,193,047
Members
453,772
Latest member
aastupin

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