COUNTIF with multiple criteria using multi-select column
Hello,
I'm looking for help with a formula in SmartSheet. I am trying to use a COUNTIF formula based on my multi-select column "Type" where I am looking for a sum of all items that contain the value of "External" but not not contain "Pending-Add."
The formula I am using is: =COUNTIFS(Type:Type, HAS(@cell, "External"), (Type:Type), <>"Pending-Add") However, my results are still counting items with type of "Pending-Add". Can anyone tell me how to fix this?
Per this example I've posted I'm getting a count of 6 but I need to return a count of 5.
Thank you!!
Answers
-
The <>"Pending-Add" argument seems to be causing your problem because the multi-dropdown cells usually have to be wrapped in a HAS or COLLECT function to count properly. You should be able to fix the problem by using the following syntax:
=COUNTIFS(Type:Type, HAS(@cell, "External"), (Type:Type), NOT(HAS("Pending-Add")))
-
Hi Adrian,
I tried your formula but am getting a #INVALID OPERATION message. Any ideas?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!