RYG Health formula based on due date and % complete

Options
✭✭✭

I'm trying to create a formula to calculate the below:

'Due date' is in the next 10 days and '% complete' is less than 50% = "Red"

'Due date' is in the next 10 days and '% complete' is less than 90% = "Yellow"

'Due date' is in the next 10 days and '% complete' is greater than 90% or 100% = "Green"

• ✭✭✭✭✭✭
Options

This should do it for you:

=IF([Due Date]@row<= TODAY(10), IF([% Complete]@row<= 0.50, "Red", IF([% Complete]@row<= 0.90, "Yellow", "Green")), "Green")

• ✭✭✭✭✭✭
Options

Try this:

=IF([Due Date]@row<= TODAY(10), IF([% Complete]@row<= 0.50, "Red", IF([% Complete]@row<= 0.90, "Yellow", "Green")))

• ✭✭✭
Options

Thanks Paul, yes thats done it but can it be made to show "Green" if the due date is more than 10 days away?

• ✭✭✭✭✭✭
Options

This should do it for you:

=IF([Due Date]@row<= TODAY(10), IF([% Complete]@row<= 0.50, "Red", IF([% Complete]@row<= 0.90, "Yellow", "Green")), "Green")

• ✭✭✭
Options

thanks, thats ideal

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!