COUNTIF with multiple select dropdown column
Hi,
This has me going mad! 🤬🤣
I have a sheet reference "Business Area" which has a column type of dropdown multi-select. I'm then using a COUNTIF on specific values to compile a metric sheet.
This is counting fine where the dropdown has "C" and "E" selected:
=COUNTIF({Business Area}, @cell = "C" + CHAR(10) + "E")
However, when "iP" and "S" are selected the COUNTIF returns 0 which I know is not the case:
=COUNTIF({Business Area}, @cell = "iP" + CHAR(10) + "S")
If I count the "iP" and "S" separately all is fine, it's only when I try to count as combined selected values...
Any thoughts please?
Thanks!
Del
Best Answer
-
Try something more like this...
=COUNTIFS({Business Area}, AND(HAS(@cell, "iP"), HAS(@cell, "S")))
Answers
-
Try something more like this...
=COUNTIFS({Business Area}, AND(HAS(@cell, "iP"), HAS(@cell, "S")))
-
Thank you @Paul Newcome - that works perfectly!! 👍️👍️👍️
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!