Formula
Hello there,
I'm new in SS. I'm trying to create a formula for the status column.
I have the following status:
On track
At Risk
Late
Not Started
=IF([Start Date]1 > TODAY(), "Not Started", IF([End Date]1 > TODAY(), "On Track", IF([End Date]1 = TODAY(), "At Risk", IF(AND([% Complete]1 = 1, [End Date]1 < TODAY()), "Complete", "Late"))))
I would like to have the below rules, but for some reason I don't get that all of them works.
I would appreciate is someone can give me an idea.
Thanks!
Best Answer
-
Need to change the Late in the ordering.
=if([% Complete]@row=1,"Complete",if([End Date]@row<Today(),"Late",if(AND([Start Date]@row>TODAY(),[% Complete]@row=0),"Not Started",if([End Date]@row>Today(5),"On Track",if([End Date]@row<=TODAY(5),"At Risk")))))
Answers
-
@RA
=if([% Complete]@row=1,"Complete",if(AND([Start Date]@row>TODAY(),[% Complete]@row=0),"Not Started",if([End Date]@row<=TODAY(5),"At Risk",if([End Date]@row<Today(),"Late",if([End Date]@row>Today(),"On Track")))))
-
Hello @JamesB,
Thank you so much for your prompt response. For some reason it doesn't apply for Late. Please see example below:
The status should be "late", since the end date is past due and the % complete is <100%
Thanks.
-
Let's break down the argument order, we may need to re-order it.
=if([% Complete]@row=1,"Complete",
if(AND([Start Date]@row>TODAY(),[% Complete]@row=0),"Not Started",
if([End Date]@row<=TODAY(5),"At Risk",
if([End Date]@row<Today(),"Late"
if([End Date]@row>Today(),"On Track")))))
In your Example above, your end date is less than or equal today plus 5, and the argument order it is ending at the 3rd IF statement, because that is true. So we need to check the On Track before the at Risk and we need to add 5 to the On Track statement.
Try this...
=if([% Complete]@row=1,"Complete",if(AND([Start Date]@row>TODAY(),[% Complete]@row=0),"Not Started",if([End Date]@row>Today(5),"On Track",if([End Date]@row<=TODAY(5),"At Risk",if([End Date]@row<Today(),"Late")))))
-
Hi @JamesB I really appreciate your time. But unfortunately it still not working :-(
See examples below:
I'll keep trying to figure out what we are missing.
-
Need to change the Late in the ordering.
=if([% Complete]@row=1,"Complete",if([End Date]@row<Today(),"Late",if(AND([Start Date]@row>TODAY(),[% Complete]@row=0),"Not Started",if([End Date]@row>Today(5),"On Track",if([End Date]@row<=TODAY(5),"At Risk")))))
-
@JamesB you are AWESOME!! It's working perfectly now.
Thank you so much for your time :-)
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
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!