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.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
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?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@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.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
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. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!