Countifs
I have a dropdown list with multiple service items in text format, and I'm trying to count those text items. Seems easy but Countifs keeps giving me an error and I canot figure out why.
I have a separate metric sheet that includes the services I'm trying to count. Here is the formula
=COUNTIF({Survey Range 12}, CONTAINS([Services]@row))
Answers
-
=COUNTIF({Survey Range 12}, CONTAINS(@cell,Services@row),{Survey Range 12})
If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.
-
@SALLY P You need to complete the arguments for the Contains Formula.
I am assuming that Survey Range 12 is your multi select column on the referenced sheet. That being the case the below formula says count the items in {Survey Range 12" where "What to Search for" is in {Survey Range 12}. I hope this make sense.
=COUNTIF({Survey Range 12}, CONTAINS("What To Search for",{Survey Range 12}))
-
I was able to get this formula below to work, unsure if it is exactly what you are after though.
I used a HAS function instead of CONTAINS, and it would require to input the "Survey Item" manually in the quotations for each row.
Hope this helps a bit!
=COUNTIFS({Survey Range 12}, HAS(@cell, "Apple"))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!