How to use AND and OR in an IF function?

So the answer has to be Operator plus one of the other 3 "OR" options.

IF [Operator or Engineer]@row = "Operator" AND either [Shift/Available]@row = "1-Grave" or [Shift/Available]@row = "3-Swing", or [On or Off Site]@row = "Off site" then check the box.


=IF(AND(OR([Shift/Available]@row = "1-Grave", [Shift/Available]@row = "3-Swing", [On or Off Site]@row = "Off site")),[Operator or Engineer]@row = "Operator",1,0)

Please help me to figure how to correctly write this formula.

Best Answer

  • Nic Larsen
    Nic Larsen ✭✭✭✭✭✭
    Answer ✓

    Try this:

    =IF(AND([Operator or Engineer]@row = "Operator", OR([Shift/Available]@row = "1-Grave", [On or Off Site]@row = "Off Site", [Shift/Available]@row = "3-Swing")), 1)

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!