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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!