How to use COUNTIFS for different text strings within one column?

Hello,

I can't figure out how to COUNT different text strings in one column.

COUNT how often "ABC" is in the TaskName column (=primary column) with its status "Green" (symbol) in the Status column AND COUNT how often is "Prot DEF" in the TaskName column AND COUNT how often is "KL" in the TaskName column all with its status "Green" in the Status column (IF). "Prot DEF" cells may also contain more text: eg. "Prot DEF 12.0", "Prot DEF 3.4".

=COUNTIFS([Task Name]:[Task Name], FIND("CSR", @cell, "Prot DEF", @cell, "KL", @cell), Status:Status, "Green") - this is not working!

Any help is much appreciated!!

Answers

  • David Joyeuse
    David Joyeuse ✭✭✭✭✭

    Hi @Kirsten

    I'm not sure what you're trying to do here.

    Do you want to return 3 different counts (1 for each string) in one cell? Or do you want to return 1 count of all those 3 strings?

  • Kirsten
    Kirsten ✭✭

    Hello David,

    Thanks for reaching out!

    I want to count all the text strings ('ABC', 'Prot DEF', 'KL') that are in the green status. I may have 2 times 'ABC' in green, 1 'KL' in green, and 'Prot DEF' in red = 3 counts.

    Does this make more sense?

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!