Need Formula Help: How to count multiple drop down values?
Problem Statement:
I have a sheet that was used in a form with multiple drop down selections and need to discover how to calculate total selected by category.
Need to count how many times apples was selected.
Example of column sheet:
Column Choices: apples, grapes, oranges, other
I have tried using the COUNTM formula and I keep getting an error. Here is the current formula being used:
=countm(reference other sheet), [apples])
What is wrong with my formula and how can I adjust to make it work? Thanks
Best Answer
-
@SmartWay360 Grouping in a report will not wok because you cannot group on a multi-select dropdown type column.
@Jessie_Phillips You will need a COUTINFS with a HAS function like so:
=COUNTIFS({Dropdown Column}, HAS(@cell, "Apples"))
Answers
-
Hi,
The formula you are referring to is probably COUNTIF. More about it: COUNTIF Function | Smartsheet Learning Center.
However, I would recommend to consider using report of the sheet with grouping Fruits column and COUNT in the SUMARIZE tab.
Best,
Beata
-
@SmartWay360 Grouping in a report will not wok because you cannot group on a multi-select dropdown type column.
@Jessie_Phillips You will need a COUTINFS with a HAS function like so:
=COUNTIFS({Dropdown Column}, HAS(@cell, "Apples"))
-
Could you also count apples and grapes and have those numbers combined in a count?
So, =COUNTIFS({Dropdown Column}, HAS(@cell, "Apples") @cell, "Grapes))
Would that work?
-
@Andre O You would need an OR function to count if it has apples or grapes in each cell.
=COUNTIFS({Dropdown Column}, OR(HAS(@cell, "Apples"), HAS(@cell, "Grapes")))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!