I am trying to use COUNTIF to count a certain word (from a multi-select dropdown) in a column
The formula I tried to use isn't working to read what I need it to...
Using =COUNTIF({Q1 - Strengths}, "Accountability") hasn't done it correctly.
I used =COUNTM({Q1 - Strengths}, "Accountability") but it counts everything in column, not only the word/title I need it to.
Answers
-
Try: =COUNTIF({Q1 - Strengths}, FIND("Accountability", @cell) >= 1)
-
I would suggest using the HAS function for this. Nic's solution will work, but will find any string of text within the cell that says "Accountability". So if there is another strength labeled "Poor Accountability" (what a strength!) the FIND would also count that. The HAS function looks specifically for a string as it exists in the dropdown selections.
=COUNTIFS([Q1 - Strengths]:[Q1 - Strengths], HAS(@cell, "Accountability"))
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
-
Worth a mention that I'm trying to pull the info from a separate sheet.
-
you have to use HAS. I got it to work - try this -
=COUNTIFS([Q1-Strengths]:[Q1-Strengths], HAS(@cell,"Accountability")) (this is if you have named your range. If you name your range, use {named range}
-
Thank you! The suggestions helped me get it to work and pull the right information!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!