Formula to count column but exclude information within the column

Ryan Woj
Ryan Woj ✭✭
edited 02/19/24 in Formulas and Functions

I have a list of Job Classifications that is very long and I need a Countifs formula that can exclude 1 specific job class so that it can count all the others?

Tags:

Answers

  • heyjay
    heyjay ✭✭✭✭✭
    =COUNTIFS(Range:Range, NOT(CONTAINS("Criteria", @cell))
    

    or use Not Equal sign, <>

    ...

  • I have tried the not equal <>


    and getting an Invalid Operation error

    =COUNTIFS({Action Type}, $[Primary Column]@row, {New/Reclassified reference}, [Column2]$17, {PPB - PA, Recruitment and OL RF Range 1}, NOT(CONTAINS([Column2]$16)))

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Your CONTAINS syntax is off. You need an @cell reference like so:

    =COUNTIFS({Action Type}, $[Primary Column]@row, {New/Reclassified reference}, [Column2]$17, {PPB - PA, Recruitment and OL RF Range 1}, NOT(CONTAINS([Column2]$16, @cell)))

    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!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!