Using IF, AND, and ISDATE together question

So I'm trying to get the answers of "Late" or "On Time" based on if column [Late] says "Yes" in it, and the Column [Actual Date] is a date (any date will do, just as long as its a date). My formula below is just always giving me the response "On Time" regardless if either criteria I'm trying to check is correct.

=IF(AND([Late?]@row = "Yes", ISDATE([Actual Date]@row)), "Late", "On Time")

Also having an issue with this

=IFERROR(IF(AND([Target Date]@row < TODAY(), ISDATE[Actual Date]@row)), "Yes", "No"), "")

Getting an error on this one, so I think I am just using something incorrectly, but cant find it...

Best Answer


  • Jon Mark H
    Jon Mark H ✭✭✭✭✭
    edited 03/25/22

    Give this a try on the first one:

    =IF(AND([Late?]@row = "Yes", ISDATE([Actual Date]@row) = true), "Late", "On Time")

    ISDATE returns true or false - just had to add that in there.

    Here's the second one:

    =IFERROR(IF(AND([Target Date]@row < TODAY(), ISDATE([Actual Date]@row) = true), "Yes", "No"), "")

    Let me know how they work out or if there's any other tweaks needed!

  • Michael.Damron
    edited 03/25/22

    Didn't see the part about true or false anywhere, thanks for that.

    Unfortunately though I am still having the same result. Everything is "On Time"

    The second formula is no longer erroring, but isn't giving me the expected results. I may have to work on my logic on that one, not sure.

  • Jon Mark H
    Jon Mark H ✭✭✭✭✭

    Even if you're putting "Yes" in the [Late?] column?

    That's odd.

    Do you have any more non-sensitive information or screen shots you could share to help?

  • Not sure how helpful this is...

    Using this formula

    =IF(AND([Late?]@row = "Yes", ISDATE([PSE Actual Date]@row) = true), "Late", "On Time")

    If the late column says yes, and there's not a date in the Actual date field, I want it to say Late. Basically.

  • Michael.Damron
    Answer ✓

    The date I was looking at, wasn't listed as a date field, so I think that was confusing everything. I changed that and now it is working....I think!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!