Help! Nested If/AND/OR Formula's
Hi - I am trying to write a nested formula that evaluates multiple criteria to returns a "Yes" or "No"
Basically I need to assess the status of a task, based on values in multiple columns and state "yes" complete or "no" its not complete in the All Reviews Done column.
These are my Column Names
The criteria is in the right side column.
How do I nested =if(and with OR statements?
I've tried lots of combinations
=IF(AND([Primary Review: Done, Need Info, Problem or N/A]@row = "Green", [Back-Up Reviewer]@row = 0), "Yes"), OR(AND([Primary Review: Done, Need Info, Problem or N/A]@row = "Green", [Back-Up Review: Done, Need Info, Problem, N/A]@row = "Green"), "Yes"), OR(AND([Primary Review: Done, Need Info, Problem or N/A]@row = "Green", [Back-Up Review: Done, Need Info, Problem, N/A]@row = "Gray"), "Yes"), IF([Primary Review: Done, Need Info, Problem or N/A]@row = "Gray"), "Yes", "No"))
Best Answer
-
Try this:
=IF([Primary Review]@row = "Gray", "Yes", IF([Primary Review]@row = "Green", IF(OR([Back-Up Reviewer]@row = "", [Back-Up Review]@row = "Green", [Back-Up Review]@row = "Gray"), "Yes", "No"), "No"))
Answers
-
Try this:
=IF([Primary Review]@row = "Gray", "Yes", IF([Primary Review]@row = "Green", IF(OR([Back-Up Reviewer]@row = "", [Back-Up Review]@row = "Green", [Back-Up Review]@row = "Gray"), "Yes", "No"), "No"))
-
AWESOME - this meets all the criteria and works perfectly.
Hopefully they don't change the criteria again or I'll be stumped again!
Thanks so much for your help, my first time using this community!
Really appreciated
-
@Clark Usher - If you get stumped again, you can always come back! 🙂
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
@Clark Usher Happy to help. 👍️
And as @Genevieve P. said... You can always come back for another visit if you get stumped.
-
Hi @Paul Newcome, they did move the criteria on me today, I rewrote it below if this makes sense?
I tried to add it into your formula but I am still making mistakes somewhere.
Conditions if Back-Up Reviewer = unassigned (0) and
If Primary Review = “Green” or “Gray”, “Yes”
Conditions if Back-Up Reviewer = assigned (1) and:
If Primary Review = “Green” and Back-Up Review = “Green”, “Yes”
If Primary Review = “Green” and Back-Up Review = “Gray”, “Yes”
If Primary Review = “Gray” and Back-Up Review = “Green”, “Yes”
If Primary Review = “Gray” and Back-Up Review = “Gray”, “Yes”
If false, “No”
-
I would use this:
=IF([Back-Up Reviewer]@row = "", IF(OR([Primary Review]@row = "Green", [Primary Review]@row = "Gray"), "Yes", "No"), IF(COUNTIFS([Primary Review]@row:[Back-Up Review]@row, OR(@cell = "Green", @cell = "Gray") = 2, "Yes", "No"))
-
Hi - thanks I really appreciate your help here, I am sorry to keep coming back to you.
When I use this with Back-Up Reviewer = assigned, I get #Incorrect Argument Set
-
Is it possible to have a back-up with no primary?
-
Hi - No, there will always be a Primary if there is a Back-Up or a Primary only (no back-up).
Never just a back-up.
-
Ok. So in your screenshot it looks like you have a back-up with no primary. Try plugging in a Primary to see if it will work.
-
Sorry the shot wasn't wide enough, there was a primary reviewer but I don't see that column referenced in the formula. I had thought it might just have been a column naming issue.
-
Sorry to bug you @Paul Newcome, any chance you were able to review this for me.
Thanks in advance.
Clark
-
Sorry about that. Misplaced parenthesis.
=IF([Back-Up Reviewer]@row = "", IF(OR([Primary Review]@row = "Green", [Primary Review]@row = "Gray"), "Yes", "No"), IF(COUNTIFS([Primary Review]@row:[Back-Up Review]@row, OR(@cell = "Green", @cell = "Gray")) = 2, "Yes", "No"))
-
Thanks so much - this is working 100%
REALLY appreciate your help here.
Thanks Clark
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!