two columns to power a red flag in another column

If I have an urgency status that is gray (indicating a deal that is either dead, closed, or on pause), coupled with a priority status listed as medium or high, I would like to power an additional column titled "Discrepancy" to show up with a red flag. Thank you!

Best Answer

  • Cody Holmes
    Cody Holmes ✭✭✭✭
    edited 04/19/21 Answer ✓

    =IF(AND([Urgency Status]@row = "Gray", OR([Priority Status]@row = "Medium", [Priority Status]@row = "High")), 1, 0)


    This should work. Basically, when you say "coupled with," I take that as an AND condition. So the above formula should work when an urgency status is gray AND the priority status is either medium or high. The 1 value ensures that the red flag is shown; 0 means otherwise. Let me know if this worked for you and, if so, give me a vote up!

    Be sure to write the formula in the Discrepancy column.

Answers

  • Cody Holmes
    Cody Holmes ✭✭✭✭
    edited 04/19/21 Answer ✓

    =IF(AND([Urgency Status]@row = "Gray", OR([Priority Status]@row = "Medium", [Priority Status]@row = "High")), 1, 0)


    This should work. Basically, when you say "coupled with," I take that as an AND condition. So the above formula should work when an urgency status is gray AND the priority status is either medium or high. The 1 value ensures that the red flag is shown; 0 means otherwise. Let me know if this worked for you and, if so, give me a vote up!

    Be sure to write the formula in the Discrepancy column.

  • Perfect, thanks Cody!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!