RYG Automation. The Y is the Kicker!

TLee
TLee ✭✭
edited 12/09/19 in Smartsheet Basics

Hello everyone,

I'd like to ask for your help with a specific automation I'd like to create for the RYG circle status indicators for tasks. My status definitions are as follows:

  1. Green means On Schedule = Which is the default color when none of the other statuses are true
  2. Red means Late = % Complete is less than 100% and the task end date has passed
  3. Blue means Complete = % Complete is equal to 100%

Yellow means Behind Schedule and this is the tricky one. I want to define this as a combination of the number of days of duration that have elapsed and the percent that should be accomplished by intervals in the duration. My intervals are 25%, 50% and 75%. So for example, if a task has an 8 day duration, then once 2 days (25% of 8) have passed during the duration, then % Complete should be at least 25% or on the third day of the 8 day duration the green circle would automatically change to yellow. Once 50% of the duration (4 days) has passed, it would change to yellow on the 5th day if % Complete is not at least 50%. Once 75% of the duration (6 days) has passed, it would change to yellow on the 7th day if % Complete is not at least 75%. On the 9th day, if % complete is not 100%, then the status would change to Red and it would be late.

 

I figured out a formula for the blue, red and green statuses and it seems to work . . .

 

=IF([% Complete]18 = 1, "Blue", IF(AND([% Complete]18 < 1, TODAY() > [End Date]18), "Red", "Green"))

 

Here is what I came up with for Yellow and it is not working . . .

 

=IF(AND([% Complete]25 < 0.25, TODAY() > [Start Date]25 + Duration25 * 0.25, TODAY() <= [Start Date]25 + Duration25 * 0.5, "Yellow", "Green", IF(AND([% Complete]25 < 0.5, TODAY() > [Start Date]25 + Duration25 * 0.5, TODAY() <= [Start Date]25 + Duration25 * 0.75), "Yellow", "Green", IF(AND([% Complete]25 < 0.75, TODAY() > [Start Date]25 + Duration25 * 0.75, TODAY() <= [Start Date]25 + Duration25), "Yellow", "Green"))))

 

I'd like to combine both formulas into one formula that works based on the definitions I described so I can use it in the status column to automatically flip the RYG circles. Do you think there is a syntax issue with the formula for Yellow? Any help you can provide would be much appreciated!

 

Torrey

 

Comments