IF, AND formula for checkbox
Hello,
I'm trying to make a formula for a checkbox column where if the column titled "Expected result" is positive, but the "Results" column is negative, then the checkbox will be filled (and vice versa if expected is negative and result is positive). However, I cannot say if the expected result column and results column don't equal each other to check the box, because there are other rows in the sheet that I don't want checked and aren't equal.
I tried this formula, but got an #unparseable error. Any suggestions for improvement?
=if([Expected result]@row = "+" AND([Results]@row = "+"), 0, IF([Expected result]@row = "-" AND([Results]@row = "-"), 0, IF([Expected result]@row = "+" AND([Expected result]@row = "-"), 1, IF([Expected result]@row = "-" AND([Results]@row = "+"), 1))))
Best Answer
-
Try something like this...
=IF(OR(AND([Expected Result]@row = "-", Result@row = "+"), AND([Expected Result]@row = "+", Result@row = "-")), 1)
Answers
-
Try something like this...
=IF(OR(AND([Expected Result]@row = "-", Result@row = "+"), AND([Expected Result]@row = "+", Result@row = "-")), 1)
-
Ah that was brilliant. It works perfectly. Thank you!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 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!