Combining AND with OR
From a logical perspective, I'm trying to write a formula that says the following -
If the (Issue Type = 'BUG') AND the( Status = 1 of 5 possible values), then the cell value should be a red ball, otherwise, the cell value should be green. Regardless of what I try to type, I'm either getting #UNPARSEABLE or #INCORRECT ARGUMENT SET as my response. Any assistance would be appreciated. Below is my current exact syntax...
=IF(AND([Issue Type]2 = "Bug", IF(OR(Status2 = "Waiting for support", Status2 = "Pending", Status2 = "Open", Status2 = "Reopened", Status2 = "Requested"))), "Red", "Green")
Thank you in advance.
Comments
-
This is a quick attempt to fix it, but try this.
=IF(AND([Issue Type]2 = "Bug", (OR(Status2 = "Waiting for support", Status2 = "Pending", Status2 = "Open", Status2 = "Reopened", Status2 = "Requested"))), "Red", "Green")
I removed the IF that was before OR because its still part of the same first condition.
-
That worked perfectly Mike. Thank you so much!!
Regards,
Tim
-
Awesome! Glad I could help you out!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!