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
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!