IF, AND, OR Formula

05/11/21
Accepted

Hello, I am trying to write a formula to use the flag symbol to flag a row as urgent IF the location is "Real" AND Staffing Status symbol is "Yellow" OR "Red". I am having a hard time combining them all to have the correct syntax. This is what I have so far:

=IF([Location Status]@row = "Real", AND([Staffing Status]@row = "Yellow", OR([Staffing Status]@row = "Red")), 1)

It seems to be working as it's not giving me an error message, but not formulating the way I need it to. Thank you in advance.

Popular Tags:

Best Answer

  • Heather DHeather D ✭✭✭✭✭
    Accepted Answer

    Hi @Keisha Thomas


    You're close! Try this:

    =IF(AND([Location Status]@row = "Real", OR([Staffing Status]@row = "Yellow", [Staffing Status]@row = "Red")), 1,0)


    Let me know if it works for you!


    Best,

    Heather

Answers

Sign In or Register to comment.