Simple Due Date Formula Error

So I've looked at this for the past 30 minutes and can't figure out my error. I'm trying to simply mark a column as Past Due, if the Due Date is before Today and the Status is not Closed. I'm getting a Unparse error and I know it is something stupid that I'm missing

=IF(AND([Due Date]@row < TODAY, [Status]@row <> “Closed”), "Past Due", 0)

Answers

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

    Hi @Sarah Brelage

    I hope you're well and safe!

    There were multiple issues with your formula.

    You were missing the parenthesis after TODAY, and the characters around Closed aren't correct (if you look closely, you can see that they are a little slanted). Did you write out the formula in Word or another similar program?

    =IF(AND([Due Date]@row < TODAY, [Status]@row <> “Closed”), "Past Due", 0)

    Try something like this.

    =IF(AND([Due Date]@row < TODAY(), Status@row <> "Closed"), "Past Due", 0)
    

    Did that work/help?

    I hope that helps!

    Be safe and have a fantastic weekend!

    Best,

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

    Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. 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.

  • Sarah Brelage
    Sarah Brelage ✭✭✭✭✭

    Yes, I did type it in Word. I actually had several different versions going which probably helped to confuse the matter. This worked wonderfully and now I just need to add a second AND to exclude any tasks that are complete. Thanks for the help!!

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

    @Sarah Brelage

    Excellent!

    You're more than welcome!

    Remember! Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. 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.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!