RYG ball based on due dates

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

I already have a formula created that automates the RYG ball based on due dates...

=IF(Complete1 = 1, "Gray", IF([Due Date]1 < TODAY(+3), "Red", IF(AND([Due Date]1 >= TODAY(+3), [Due Date]1 < TODAY(+7)), "Yellow", IF([Due Date]1 >= TODAY(+7), "Green", "Nope"))))

Β 

What im having an issue with is whenever the cell in the due date column is blank, the RYG ball automates to red. I would like to automate it to Gray whenever the cell block is empty but everytime i plug theΒ IF(ISBLANK([Due Date]1), "Gray" it doesn't do what i need it to. If i put it in the beginning it doesn't allow me to have a date before today (Like if IΒ need to back date something), at the end it does nothing and anywhere else makes it "unparsable" or "invalid".Β 



here is a screenshot of the sheet

smartsheet RYG Ball.png

Comments

  • AndrΓ©e StarΓ₯
    AndrΓ©e StarΓ₯ Community Champion

    Hi,

    Try changing the first part of the formula with this.

    =IF(OR(Complete1 = 1; Complete1 = ""); "Gray";Β  Β 

    The same version but with the below changes for your and others convenience.Β Β  Β 

    =IF(OR(Complete1= 1, Complete1 = ""), "Gray",

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    Have a fantastic week & Happy Holidays!

    Best,

    AndrΓ©e StarΓ₯

    Workflow Consultant @ Get Done Consulting

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    AndrΓ©e StarΓ₯ | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • eric.o
    eric.o Employee

    Hello,

    Happy to help! If you desire to have Status turn grey if the [Due Date] is blank you can achieve this by placing the ISBLANK Function at the beginning of the formula.Β 

    I've successfully achieved your desired goal utilizing this formula:

    Β 

    =IF(ISBLANK([Due Date]@row), "Gray", IF(Complete@row = 1, "Gray", IF([Due Date]@row < TODAY(+3), "Red", IF(AND([Due Date]@row >= TODAY(+3), [Due Date]@row < TODAY(+7)), "Yellow", IF([Due Date]@row >= TODAY(+7), "Green", "Nope")))))

    Β 

    Please let us know if you have any questions on the above.

    Cheers,Β 

    Eric Β 

    Smartsheet Support

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!