RYGB Balls Formula

Options

I'm using Smarthseet to manage a project work plan. I have used the formula below to automate RYGB balls.

=IF(AND([Target End Date]@row < TODAY(), NOT(ISBLANK([Target End Date]@row)), NOT(Status@row = "Complete"), NOT(ISBLANK(Status@row)), NOT(Counter@row > "0")), "Red", IF(AND([Target Start Date]@row < TODAY(), NOT(ISBLANK(Status@row)), NOT(Counter@row > "0")), IF(OR([% Complete]@row = "0", ISBLANK([% Complete]@row)), "Yellow", IF(AND([% Complete]@row > "0", [% Complete]@row < "1", NOT(ISBLANK(Status@row)), NOT(Counter@row > "0")), "Blue", IF(OR([% Complete]@row = "1", NOT(ISBLANK(Status@row)), Status@row = "Complete", NOT(Counter@row > "0")), "Green")))))

The fırmual is working well; however, I cannot see the green ball for one activity that I have completed before its Target start date. Any help?

Answers

  • Genevieve P.
    Genevieve P. Employee Admin
    Options

    Hi @Abdulsalam A. A. Mohammed

    I notice that you have quotation marks around the 0s and 1s in your formula. Can you clarify what the "Counter" column is used for?

    If you're looking for numerical values, such as a percent in the percent complete column, or numbers in the Counter column, you'll actually want to add in the numbers without any quotes. Adding quotes to the formula turns the value into a text string instead of a number. See this Help Article: Create and Edit Formulas in Smartsheet


    Try this:

    =IF(AND([Target End Date]@row < TODAY(), NOT(ISBLANK([Target End Date]@row)), NOT(Status@row = "Complete"), NOT(ISBLANK(Status@row)), NOT(Counter@row > 0)), "Red", IF(AND([Target Start Date]@row < TODAY(), NOT(ISBLANK(Status@row)), NOT(Counter@row > 0)), IF(OR([% Complete]@row = 0, ISBLANK([% Complete]@row)), "Yellow", IF(AND([% Complete]@row > 0, [% Complete]@row < 1, NOT(ISBLANK(Status@row)), NOT(Counter@row > 0)), "Blue", IF(OR([% Complete]@row = 1, NOT(ISBLANK(Status@row)), Status@row = "Complete", NOT(Counter@row > 0)), "Green")))))


    Did that work for you?

    Cheers!

    Genevieve

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!