Nested IF(OR statements column formula
Hello smartsheet Community!
I'm trying to have a status column update based on three approval columns. There's several reasons why a row would be green ("Yes"), yellow ("Hold"), or red ("No"), so I'm trying to use nested IF(OR statements. It's possible I'm overcomplicating this and there's an easier way, any help is greatly appreciated!!
=IF(OR([A Approval Decision]@row = "Approved ",
[B Approval Decision]@row = "Approved ",
[A Approval Decision]@row = "Approved by
Email", [Review]@row = "Duplicate,
Approved"), "Yes", IF(OR([A Approval Decision]@row = "Declined",
IF([B Approval Decision]@row = "Declined",
IF([Review]@row = "Declined"), "No", IF(OR([A Approval Decision]@row = "Submitted",
"Hold", IF([Bs Approval Decision]@row = "Submitted ",
"Hold", IF([Review]@row =
"Submitted", "Hold", IF([Review]@row = "New"),
"Hold")))))))))
Best Answer
-
You don't need the extra IF statements inside of the OR statements.
The reason the green is working is because you have
IF(OR(..., ..., ..., ..., ...)
The other two you have
IF(OR(IF(..., IF(..., IF(...
Try getting rid of the IFs inside of the ORs.
Answers
-
Are you getting an error message, an unexpected output, or are you just looking to see if there is a different way to write the formula?
-
@Paul Newcome The green/yes status is working, but all others have "#INCORRECT ARGUMENT SET"
-
You don't need the extra IF statements inside of the OR statements.
The reason the green is working is because you have
IF(OR(..., ..., ..., ..., ...)
The other two you have
IF(OR(IF(..., IF(..., IF(...
Try getting rid of the IFs inside of the ORs.
-
Ooooh yes, and once I started looking at that I realized I was including "Hold" too many times too, I must have forgot to remove when I added OR. Updated to the below and all is working, thank you @Paul Newcome !
=IF(OR([A Approval Decision]@row = "Approved ", [B Approval Decision]@row = "Approved ", [A Approval Decision]@row = "Approved by Email", [Review]@row = "Duplicate, Approved"), "Yes", IF(OR([A Approval Decision]@row = "Declined", [B Approval Decision]@row = "Declined", [Review]@row = "Declined"), "No", IF(OR([A Approval Decision]@row = "Submitted", [Bs Approval Decision]@row = "Submitted ", [Review]@row = "Submitted", "Hold", [Review]@row = "New"), "Hold")))
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!