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
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!