Conditional Formatting based on due date

Leann Gibson
Leann Gibson ✭✭✭✭✭
edited 12/09/19 in Smartsheet Basics

I have a due date and want to have the "Risk" green if the due date is more than 15 days out and the Status is not "Complete". How do I do this?

 

Comments

  • Debbie Sawyer
    Debbie Sawyer ✭✭✭✭✭✭

    Within the Conditional Formatting dialog box (button in the middle of your toolbar, looks like a grid with some colour to the squares) you can click on the drop down arrow on the left hand side and select the AND condition to add a second condition. 

    I have added a screen shot to show you what I mean.

    Hope this helps.

    Debbie Sawyer Consultant & Training Manager

     

     

    Conditional Formatting.png

  • Mike Wilday
    Mike Wilday ✭✭✭✭✭✭

    If you are talking about the RYGB symbol column... you will want to use a formula in the symbol column, 

    =IF([Due Date]@row - Today() > 15, "Green", IF([Due Date]@row < Today(), "Red", "Yellow") 

    The formula will count everything greater than 15 as Green, Due dates in the past as REd and everything inbetween as Yellow. 

  • Hi

    Is it possible to compare 2 date columns in IF statement and do colouring based on that?

    I would like to have separate delivery date for each row.


    Regards,

    Areg

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

    Hi Areg,

    @Areg Vrtanesyan

    Yes, it is. We’d use a so-called helper column to make it work. In my example I use a checkbox helper column. You can then use that in the conditional formatting.

    Try something like this.

    =IF(AND(ISDATE(DateA@row); ISDATE(DateB@row)); IF(NOT(DateA@row = DateB@row); 1; ""))

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

    =IF(AND(ISDATE(DateA@row), ISDATE(DateB@row)), IF(NOT(DateA@row = DateB@row), 1, ""))

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

    Did that work?

    I hope that helps!

    Have a fantastic week!

    Best,

    Andrée Starå

    Workflow Consultant / CEO @ WORK BOLD

    ✅Did my post help 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!

    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.

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    @Areg Vrtanesyan It is very possible. You would need to put the IF statement in it's own column, then set up the Conditional Formatting to run based on this third column.