Formula for In Progress and Yellow OR Green health

Hello,

I am wanting a formula that shows me all of the "In Progress" items that have a health of either Green or yellow. I can get the formula with just the Green, but not sure how to add the OR "Yellow" part of the formula.


=COUNTIFS({Project: VCLC Needs Assessment Range 2}, "In Progress", {Project: VCLC Needs Assessment Range 1}, "Green", OR({Project: VCLC Needs Assessment Range 1}, "Yellow"))

Tags:

Best Answer

  • SoS | Dan Palenchar
    SoS | Dan Palenchar ✭✭✭✭✭✭
    Answer ✓

    Try this

    =COUNTIFS({Project: VCLC Needs Assessment Range 2}, "In Progress", {Project: VCLC Needs Assessment Range 1}, OR(@cell = "Green", @cell= "Yellow"))

    If that doesn't work

    =COUNTIFS({Project: VCLC Needs Assessment Range 2}, "In Progress", {Project: VCLC Needs Assessment Range 1}, "Green") + COUNTIFS({Project: VCLC Needs Assessment Range 2}, "In Progress", {Project: VCLC Needs Assessment Range 1}, "Yellow")


    👨🏼💻 Dan Palenchar | School of Sheets Solutions Consulting | Smartsheet Aligned Gold Partner

    If this helped, help me & the SSC by accepting and reacting w/ 💡insightful, ⬆️ Vote Up, and/or ❤️Awesome!

    PS - If you have a follow up response tag me @SoS | Dan Palenchar so I get notified of your reply!

Answers

  • SoS | Dan Palenchar
    SoS | Dan Palenchar ✭✭✭✭✭✭
    Answer ✓

    Try this

    =COUNTIFS({Project: VCLC Needs Assessment Range 2}, "In Progress", {Project: VCLC Needs Assessment Range 1}, OR(@cell = "Green", @cell= "Yellow"))

    If that doesn't work

    =COUNTIFS({Project: VCLC Needs Assessment Range 2}, "In Progress", {Project: VCLC Needs Assessment Range 1}, "Green") + COUNTIFS({Project: VCLC Needs Assessment Range 2}, "In Progress", {Project: VCLC Needs Assessment Range 1}, "Yellow")


    👨🏼💻 Dan Palenchar | School of Sheets Solutions Consulting | Smartsheet Aligned Gold Partner

    If this helped, help me & the SSC by accepting and reacting w/ 💡insightful, ⬆️ Vote Up, and/or ❤️Awesome!

    PS - If you have a follow up response tag me @SoS | Dan Palenchar so I get notified of your reply!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!