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
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 450 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!