Formula for when Deadline is overdue, excluding certain statuses

I’ve looked all over for this, and there are formulas that get close, but nothing that quite gets what I want.

If the date is equal to or past the date under “Deadline”, autofill the formula cell with “OVERDUE”, unless the Status column (single select) is tagged “Complete”, in which case it should say “Done” no matter what (before, on, or after deadline)

Else-wise, the formula cell should be blank.

Try something like this (might need a tweak)…

IF({Status}=“Complete”,“Done”,IF(IS_AFTER(TODAY(),{Deadline}),“OVERDUE”))

It says invalid formula.

Can you copy/paste the formula as you have it? Did you need to change either of the field names?

I pasted exactly what you suggested and didn’t need to change any field names. The columns are labeled Deadline and Status on my base.

Well, I wanted to see your formula because, sometimes when you copy/paste, the double quotes get turned into the wrong type of quotes.

I’ll bet you $1 that if you manually retype the double quotes, the formula will work well.

Good luck!!

Maybe you owe me $1?

IF({Status}=“Complete”,“Done”,IF(IS_AFTER(TODAY(),{Deadline}),“OVERDUE”))

Screen Shot 2021-02-16 at 11.33.58 AM

YOU WERE RIGHT! It was a difference of slanted quotes vs regular quotes.

Looking good! How would I add in for multiple Statuses, like if i wanted it to ignore “Complete” and “Archived”

When you say “ignore”, do you mean how would you remove them from view? If that’s the case, you would use the filter capability of the view.

Meaning, if status is Complete or Archived, fill cell with “Done”

Sorry I worded it wrong - i just meant, how to formula for showing “Done” if several statuses, rather than just one. So it would show “Done” if Status is either “Complete” or “Archived”

FYI: avoid that by giving people formulas encapsulated in backticks (``) so that IF(“test”) becomes IF("test")

1 Like

For that you need to use the OR function:

IF(OR({Status}="Complete",{Status}="Archived"),"Done",IF(IS_AFTER(TODAY(),{Deadline}),"OVERDUE"))

If you want to extend the formula further, a list of all possible functions is available here: Formula field reference – Airtable Support.

This topic was solved and automatically closed 15 days after the last reply. New replies are no longer allowed.