Multiple Selections from a dropdown list (w/o) VBA

zinah

Active Member
Joined
Nov 28, 2018
Messages
353
Office Version
  1. 365
Platform
  1. Windows
Hello!

I have below table with dummy data and what I need is to:

- Choose multiple selections from the drop down list without a VBA, is there any trick for that? if not what is the suitable VBA code/macro that you suggest
- When I choose multiple selections, what should I update in my current Summary formula in order to consider the additional selection(s)?

Thank you!

Book3
ABCDEFGHIPQRST
1
2
3Team NameTeam 1
4
5CountryCountry 1Data
6SummaryTeam NameCountryInclude Status
7Include StatusYes5Team 1Country 3Yes
8Team 2Country 2Yes
9Team 3Country 1Yes
10Team 2Country 2No
11Team 3Country 2Yes
12Team 3Country 1Yes
13Team 1Country 2No
14Team 2Country 2No
15Team 3Country 3Yes
16Team 1Country 3Yes
17Team 2Country 2Yes
18Team 3Country 1Yes
19Team 1Country 3Yes
20Team 2Country 2Yes
21Team 3Country 1Yes
22Team 1Country 3Yes
23Team 2Country 2Yes
24Team 3Country 1Yes
25Team 1Country 1Yes
26Team 1Country 1Yes
27Team 1Country 1Yes
28Team 1Country 1Yes
29Team 1Country 1No
30Team 1Country 1Yes
31Team 3Country 1Yes
32Team 3Country 1Yes
33Team 3Country 1Yes
34Team 3Country 1No
35Team 3Country 1Yes
36Team 3Country 1Yes
37Team 2Country 1Yes
38Team 2Country 1Yes
39Team 2Country 1No
40Team 2Country 1Yes
41Team 2Country 1No
42Team 2Country 1Yes
43
44
Sheet1
Cell Formulas
RangeFormula
F7F7=COUNTIFS($Q$7:$Q$42,$C$3,$R$7:$R$42,$C$5,$S$7:$S$42,C7)
Cells with Data Validation
CellAllowCriteria
C3ListTeam 1, Team 2, Team 3
C7ListYes, No
C5ListCountry 1, Country 2, Country 3
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
If you really want to do it without VBA, your only option is to add the data to a pivot table and then use a slicer for each field in place of the drop downs.

Using a pivot table, you wouldn't need a formula for summary - simply use the Count of any of your fields. The value will automatically change as you adjust the slicers.
 
Upvote 0
If you really want to do it without VBA, your only option is to add the data to a pivot table and then use a slicer for each field in place of the drop downs.

Using a pivot table, you wouldn't need a formula for summary - simply use the Count of any of your fields. The value will automatically change as you adjust the slicers.
Thank you for your suggestion! The main reason why I'm doing this is not to use the pivots, as currently I'm using this approach. But to your point if there's no option but VBA, then I need help with that.
 
Upvote 0
Gotcha. If you didn't want to use pivot tables, you could also try to build the dropdowns with old fashioned data validated lists, and since you're in 365 you can make use of the FILTER function to take care of the rest. The formula would be a little cleaner if you add your data to an excel table so you can use structured references, but as it stands, you can count your results with
VBA Code:
=ROWS(FILTER(Q7:S42,(Q7:Q42=C3)*(R7:R42=C5)*(S7:S42=C7),0))

Filter() returns a filtered table according to your logic, and Rows() counts the rows returned in the Filter.
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

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