RYGB Lights Not Changing with Dates

Options

I am not sure why my lights wont change based on the dates:


=IF([Original Due Date]@row < TODAY(14), "Yellow", IF([Original Due Date]@row < TODAY(7), "Blue", IF([Revised Due Date]@row > [Original Due Date]@row, "Red")))


Would like:

Yellow: <14 days from today

Blue: <7 days from today

Red: Revised Date < Original Date



Tags:

Answers

  • Christina09
    Christina09 ✭✭✭✭✭✭
    Options

    Hi Robert,

    I think because the 14 days scenario goes first in the IF formula, so it will run the first scenario first.

    You can try this:

    =IF(AND([Original Due Date]@row >= TODAY(), [Original Due Date]@row <= TODAY(7)), "Blue", IF([Original Due Date]@row < TODAY(14), "Yellow", IF([Revised Due Date]@row > [Original Due Date]@row, "Red")))


    Hope this helps :)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!