Date Formula

Susan van Niekerk
Susan van Niekerk ✭✭✭✭
edited 04/08/24 in Formulas and Functions

Hi Brian Trust

I am needing a date formula that is a bit over my head

So IF Jan Due is a date then subtract Jan actual from Jan Due date (using Jan Variance column)

BUT if Jan Due date is blank report a blank

AND if Jan Actual Date is not a date then report "OVERDUE" in the Jan Variance Column

I have so far but is not working

=IF(ISBLANK([Jan Due Date]@row), "", IF(ISDATE([Jan Due Date]@row), IF(ISDATE([Jan Actual Date]@row), [Jan Due Date]@row - [Jan Actual Date]@row,) "", "OVERDUE")))))


  • Nick Korna
    Nick Korna ✭✭✭✭✭✭

    Hi @Susan van Niekerk,

    You need an AND in the second IF statement and appear to have 3 outcomes. A formula like this should work for you:

    =IF([Jan Due Date]@row = "", "", IF(AND(ISDATE([Jan Due Date]@row), ISDATE([Jan Actual Date]@row)), [Jan Due Date]@row - [Jan Actual Date]@row, "Overdue"))

    Sample output:

    Hope this helps, but if I've misunderstood something or you've any problems/questions then just let us know!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!