Trying to change colours based on dates



I am currently using this formula to highlight upcoming tasks to be completed:

=IF(Expiry@row < TODAY(45), "Red", IF(Expiry@row < TODAY(50), "Yellow", "Green"))

Now to need to add more logic that changes the colour to white once the task is complete. Should this be part of the same IF statement field or should I create a new column?

any assistance is appreciated.


  • Mike Wilday
    Mike Wilday ✭✭✭✭✭✭

    You can totally do it in the same column. How are you indicating the project completion? What is the column name and the "complete" indicator?

  • Roshni Verappan
    Roshni Verappan ✭✭✭✭

    There is a column that has a stated called "Bound" that once reached it should change to white.

    This is the formula I added but it isn't working, I am sure I am doing something wrong but need HELP!

    =IF(Expiry@row < TODAY(45), "Red", IF(Expiry@row < TODAY(50), "Yellow", "Green", IF([Renewal Status (UW)]@row = "Bound", "White"))) 

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi @roshni verappan

    I hope you're well and safe!

    Try changing the order of the different IF parts and maybe add the Bound part first.

    The IF function checks and stops as soon as something is true.

    Make sense?

    Did that work/help?

    I hope that helps!

    Be safe and have a fantastic week!


    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!


    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: | | P: +46 (0) - 72 - 510 99 35

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

  • Mike Wilday
    Mike Wilday ✭✭✭✭✭✭

    Yes, I agree with @Andrée Starå

    Try this formula which leaves the symbol column blank (white) for items that are bound.

    =IF([Renewal Status (UW)]@row = "Bound", "", IF(Expiry@row < TODAY(45), "Red", IF(Expiry@row < TODAY(50), "Yellow", "Green")))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!