Formula Error
Hi Community,
I needed to adjust a formula to perform an OR function instead of an AND function and now I'm receiving an error that I can't seem to correct.
The issue lies in the first section of the formula to produce a "green" value if true.
Any help would be greatly appreciated!
Best Answer

I think you need to embed the OR inside the AND, as if the whole OR statement is one of the options within the AND. Having the OR and the AND as separate logical expressions is breaking the IF syntax. Be sure to close off the OR as well as the AND with end parentheses.
Ex.  =IF(AND(A=1, B=2, OR(C=3, D=4), E=5), "True", "False")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers

I think you need to embed the OR inside the AND, as if the whole OR statement is one of the options within the AND. Having the OR and the AND as separate logical expressions is breaking the IF syntax. Be sure to close off the OR as well as the AND with end parentheses.
Ex.  =IF(AND(A=1, B=2, OR(C=3, D=4), E=5), "True", "False")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!

Thanks @Jeff Reisman , that did the trick!
Help Article Resources
Categories
Check out the Formula Handbook template!