How to automatically assign a Symbol when comparing two date columns?

Options

This is what I got.


=IF([Launch Date]@row >= [Estimated Delivery Date]@row, "Green", IF([Launch Date]@row < [Estimated Delivery Date]@row, "Red"))


However, I want "Yellow" to be assigned when the [Estimated Delivery Date] is less than 30 days from the [Launch Date].

Appreciate the insight.

Answers

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    edited 08/26/21
    Options

    Hi @Roberto Sanchez

    Hope you are fine, please try the following formula:

    =IF(OR([Estimated Delivery Date]@row = "", [Launch Date]@row = ""), "",
    IF([Launch Date]@row - [Estimated Delivery Date]@row >= 30, "Green",
    IF([Launch Date]@row < [Estimated Delivery Date]@row, "Red",
    IF([Launch Date]@row - [Estimated Delivery Date]@row < 30, "Yellow"))))
    

    the following screenshot shows the result:


    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

  • Roberto Sanchez
    Options

    Thank you so much. Worked as intended on my end.

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    Options

    @Roberto Sanchez

    Excellent, I will be happy to help you any time. Please help the Community by marking it as an accepted answers

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!