Need an equation to count text from a column with multiple selections
I'm having the issue of getting an equation to work properly in order to get a count on text in a drop down list of items.
For example: I need to count how many times "Electrical" or "Paint" is mentioned in the same cell for the whole column.
I keep getting error messages.
The only equation that I could get to work would only show the output of how many times "Paint" was mentioned on it's own, not in the cells that had multiple selections.
=COUNTIF({Range 3}, "Paint") = 2
The whole document has over 300 entries and Paint is called out more time than twice.
Any insight would be much appreciated!
Best Answer
-
Hi @shyannroddy !
Is the column you want to count a multi-select drop down? If so, try HAS in your criteria — e.g., =COUNTIF({Range3}, HAS(@cell, "Paint"))
If the column you want to count is a text column, try CONTAINS. The syntax for CONTAINS is different from HAS - so, that would look like =COUNTIF({Range3}, CONTAINS("Paint", @cell))
Does that help? :)
Answers
-
Hi @shyannroddy !
Is the column you want to count a multi-select drop down? If so, try HAS in your criteria — e.g., =COUNTIF({Range3}, HAS(@cell, "Paint"))
If the column you want to count is a text column, try CONTAINS. The syntax for CONTAINS is different from HAS - so, that would look like =COUNTIF({Range3}, CONTAINS("Paint", @cell))
Does that help? :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!