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
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!