Checkbox formula using =IF(OR
Comments
-
That would be because of your syntax. When building an IF statement with an OR function, the OR will be your criteria, then value if true, then value if false.
=IF(logical_statement, value_if_true, [value_if_false])
The OR function also requires logical statements
OR(logical_statement_1, logical_statement_2)
So it gets nested in the first portion of the IF statement.
=IF(OR(this is true, or this is true), do this, otherwise do something else)
.
=IF(OR(FIND("Maintenance", $[Item description]@row) >= 1, FIND("Support", $[Item description]@row) >= 1), 1, 0)
-
Perfect - Thank you for your explanation and solution
-
-
Thanks for the explanation above. I'm trying to adapt your formula for a scenario where I have 3 terms to search for but I keep getting an unparseable error message for some reason.
What if, for example, I want to accomplish the same exact thing as IBRIEOG except with a third word --"Rebuild"?
=IF(OR(FIND("Maintenance", $[Item description]@row) >= 1, FIND("Support", $[Item description]@row) >= 1), FIND("Rebuild", $[Item description]@row) >= 1) 1, 0)
Why is this not working?
Thanks!
-
The problem is an extra closing parenthesis that closes out the OR function before your third FIND and a missing comma after the OR function closes out before you enter the "value if true" portion of the IF statement. Try this instead...
=IF(OR(FIND("Maintenance", $[Item description]@row) >= 1, FIND("Support", $[Item description]@row) >= 1, FIND("Rebuild", $[Item description]@row) >= 1), 1, 0)
-
I have a similar situation where I am trying to change status health. I want the health color to change from green to yellow if a support ticket has been open more than 2 days and red if it has been open longer than 3 days. My formula keeps returning a value of #UNPARSEABLE. The formula I am using is:
=IF(OR([Issue Status]@row <> "Completed", TODAY() > ([Issue Created Date]@row + 2), "Yellow"', [Issue Status]@row <> "Completed", TODAY() > ([Issue Created Date]@row + 3), "Red", "Green")
It works with one value, but when I add the second (Red, Green) I get the error message.
Thank you for any help you can provide
-
It is because you need to open additional IF statements (I am also going to change your OR to an AND statement).
IF(AND([Issue Status]@row <> "Completed", TODAY() > ([Issue Created Date]@row + 3), "Red"
IF(AND([Issue Status]@row <> "Completed", TODAY() > ([Issue Created Date]@row + 2), "Yellow"
These are your two IF statements individually (the final "Green" output will be added in at the end).
When we nest them, we take the second IF and drop it into the "else" portion of the first IF then close them both out at the end of the formula. Give this a try and see how it works for you.
=IF(AND([Issue Status]@row <> "Completed", TODAY() > ([Issue Created Date]@row + 3), "Red", IF(AND([Issue Status]@row <> "Completed", TODAY() > ([Issue Created Date]@row + 2), "Yellow", "Green"))
-
Thank you for your quick response. I have it working.
-
-
Awesome. Thank you, Paul!
-
@Issa M Happy to help! 👍️
-
@Paul Newcome can you help me? I am trying to get a Done box checked if my Status column = Done or N/A.
Can you tell me what is wrong with my formula? =IF(OR(Status23= "Done"), 1, 0), Status23= "N/A", 1, 0
-
@Christina Oliver Try this instead...
=IF(OR(Status@row= "Done", Status@row = "N/A"), 1, 0)
-
@Paul Newcome THANK YOU!!
-
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
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!