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")))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Try something more like this...
=COUNTIFS({Business Area}, AND(HAS(@cell, "iP"), HAS(@cell, "S")))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thank you @Paul Newcome - that works perfectly!! 👍️👍️👍️
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
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
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!