COUNTIF with multiple criteria using multi-select column


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!!


  • Adrian Backus
    Adrian Backus ✭✭✭✭

    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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!