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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!