Nest IFs coming back #Unparseable
I am trying to create a formula that returns “Green” if Project Day Variance is less than or equal to 0, “Yellow” if Project Variance is between 110, or “Red” if Project Day Variance is great or equal to 11.
I tried to nest IFs, but I get Unparseable (see below):
=IF([Project Day Variance]@row <= 0, "Green"), IF(AND([Project Day Variance]@row >=1, [Project Day Variance]@row <=10)), "Yellow", IF([Project Day Variance]@row>11, "Red")
I can get it to work individually, but not combined.
@Paul Newcome thanks in advance
Best Answers

Bill,
I think this might work for you:
=IF([Project Day Variance]@row <= 0, "Green", IF(AND([Project Day Variance]@row > 0, [Project Day Variance]@row <= 10), "Yellow", IF([Project Day Variance]@row > 10, "Red")))
Thanks!

@Bill Schroeder Yes. It was you parenthesis. Think of it as the second IF being the 3rd portion of the first. The third IF is the 3rd portion of the second, so on and so forth.
=IF(this is true, do this, otherwise do this)
Your next IF is going to go into the "otherwise do this" portion.
=IF(this is true, do this, otherwise run this other IF)
=IF(this is true, do this, IF(this is true, do this, otherwise do this))
All of your IFs get closed at the very end.
Answers

Bill,
I think this might work for you:
=IF([Project Day Variance]@row <= 0, "Green", IF(AND([Project Day Variance]@row > 0, [Project Day Variance]@row <= 10), "Yellow", IF([Project Day Variance]@row > 10, "Red")))
Thanks!

Thank you Darin... was it because my ")" were off?
Really appreciate it!

@Bill Schroeder Yes. It was you parenthesis. Think of it as the second IF being the 3rd portion of the first. The third IF is the 3rd portion of the second, so on and so forth.
=IF(this is true, do this, otherwise do this)
Your next IF is going to go into the "otherwise do this" portion.
=IF(this is true, do this, otherwise run this other IF)
=IF(this is true, do this, IF(this is true, do this, otherwise do this))
All of your IFs get closed at the very end.

Thanks @Paul Newcome
I was grouping by each one. Appreciate the explanation.

Happy to help. 👍️
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 62.4K Get Help
 364 Global Discussions
 200 Industry Talk
 429 Announcements
 4.4K Ideas & Feature Requests
 137 Brandfolder
 129 Just for fun
 128 Community Job Board
 446 Show & Tell
 28 Member Spotlight
 1 SmartStories
 284 Events
 35 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!