FormulaCraft

How to calculate how many days something is overdue in Excel and Google Sheets

Topic:Date arithmetic
Excel & Google Sheets
=MAX(0,TODAY()-A2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter due dates in column A.
  2. 2In B2 enter =MAX(0,TODAY()-A2) — if today is past the due date the result is positive (overdue days); if not, it shows 0.
  3. 3Format column B as Number so it shows a day count, not a date.
  4. 4Add conditional formatting to highlight rows where B2>0 in red.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

How do I show 'On time' vs '5 days overdue'?

Wrap with IF: =IF(TODAY()>A2,TODAY()-A2&" days overdue","On time")

Can I count overdue items across a list?

Yes — use =COUNTIF(B2:B6,">0") to count rows where the overdue days are positive.

More on Date arithmetic

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: