Stuck on Multi-criteria countif function

Hello,

I am trying to find active pilots at risk by using countif to find the following in a range:

Planning

Pilot Execution

Pilot Summary

Approval to Launch

That have a status of red or yellow

Is there anyone great at these who can help?

This is what I have so far:

=COUNTIFS(Sheet - Pilot and Readiness Pipeline - Pilot1, CONTAINS("1 - Planning",@cell), ({Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))

Note that the second part works: ({Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))

I can't figure out how to combine the two criteria.

Thanks a million!

Tags:

Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi @marybeth.grant96761

    I hope you're well and safe!

    Can you share some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help.

    I hope that helps!

    Be safe, and have a fantastic week!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Give this a try (looks like you either forgot to create that first cross sheet reference or forgot to include the curly brackets on either side):

    =COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("1 - Planning",@cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow")

    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

  • Thank you! Yes, you were right about the curly brackets! : ) Now I can see all rows in a Planning stage that are red or yellow. Is it possible to add additional stages? So, something like this?

    =COUNTIFS(Sheet - Pilot and Readiness Pipeline - Pilot1, CONTAINS("1 - Planning",@cell) CONTAINS("3 - Pilot Execution,@call), ({Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))

    It doesn't like me trying to add another stage to evaluate against - I have 3 to include

    1 - Planning

    3 - Pilot Execution

    4 - Pilot Summary

  • Wait, I think I got it - I just do this:

    =COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("1 - Planning", @cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow")) + COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("3 - Pilot Execution", @cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow")) + COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("4 - Pilot Summary", @cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    You COULD do that, or you can save yourself some typing and just use another OR the same way you did with the two colors.

    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

  • THANK YOU!! You have been super helpful!

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Happy to help. 👍️

    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!