Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Help with an existing RYGB Formula

Below is the current formula in a RYGB column.

In the current set up, if the status is "not started" but the End date hasn't past, it will be yellow. Which is fine, however, I would like to update the formula to ALSO take into consideration that even if the status is "in progress", however, the % complete is less than the target % complete, instead of being green, it would show yellow. How can I update the formula to achieve this?


RYGB Formula Update.JPG


=IF([Parent (hidden)]@row > 0, IF(Status@row = "Completed", "Blue", IF((COUNT(COLLECT(CHILDREN(), CHILDREN(), "Blue")) = COUNT(CHILDREN([Parent (hidden)]@row))), "Blue", IF(COUNT(COLLECT(CHILDREN(), CHILDREN(), "Red")) > 0, "Red", IF(COUNT(COLLECT(CHILDREN(), CHILDREN(), "Yellow")) > 0, "Yellow", "Green")))), IF(Status@row <> "Completed", IF([Today (hidden)]$1 > [End Date]@row, "Red", IF(Status@row <> "In Progress", IF([Today (hidden)]$1 > [Start Date]@row, "Yellow"), "Green")), "Blue"))

Best Answer

«1

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions