Calculate Days Overdue
You have a due-date column and need to see, for each row, how many days late it is — with items that aren't due yet showing zero instead of a negative number.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
Dates in spreadsheets are numbers, so TODAY()-B2 gives the number of days between today and the due date in B2. When the due date has passed, that's a positive number of days overdue. When the due date is still ahead, the subtraction goes negative — so MAX(0, …) clamps it: anything not yet due simply shows 0. The value updates every day the file is opened, because TODAY() always returns the current date.
When to use it
Use this for aging reports, overdue invoices, late tasks, and expired contracts — anywhere "how late is it?" matters more than a yes/no flag.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08