Formula RYG automation with using Complete% and rest of date by end date.

komakoma
komakoma ✭✭
edited 12/09/19 in Formulas and Functions

hi

I'm trying to create Formula. It's almost completed. However, one last  rule doesn't work.

Can someone suggest to modify my formula?

Currently the following conditions and formula is working fine.

 

-  If Complete% is 100% = Green

- If Complete% is upper 60%  = Green

- if Complete% is under 60% and Today is less 5 days before End date = Yellow

- if Complete% is under 60% and Today is less 3 days before End date OR behind End date = Red

- If Complete% is 0 = Gray

=IF(OR([% Complete]1 = 1, [% Complete]1 > 0.6), "Green", IF(AND([% Complete]1 < 0.6, [% Complete]1 > 0), IF(NETWORKDAYS(TODAY(), [End Date]13) < 5, IF(NETWORKDAYS(TODAY(), [End Date]1) <= 3, "Red", "Yellow"), "Green"), "Gray"))

but I tried to add one more rule, then it doesn't work, error said "UNPARSEABLE"

wanted to add one more rule is

- Even if complete% is upper 60%, Today is less 2 days before End date = Red

 

I added "AND" formula

=IF(OR([% Complete]1 = 1, (AND([% Complete]1 > 0.6, (NETWORKDAYS(TODAY(), [End Date]1) > 3)))), "Green", IF(AND([% Complete]1 < 0.6, [% Complete]1 > 0), IF(NETWORKDAYS(TODAY(), [End Date]1) < 5, IF(NETWORKDAYS(TODAY(), [End Date]1) <= 3, "Red", "Yellow"), "Green"), "Gray"))) 

 

Please advise me. Thank you!

 

 

 

 

Comments

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!