How to flag overdue dates
✓ Verified in LibreOffice 25.8.7.3 ✓ Verified in Google Sheets (2026-08-30)Mark rows whose due date has passed — invoices, tasks, renewals.
The formula
| App | Formula | Notes |
|---|---|---|
| Excel (desktop) | =IF(A2<TODAY(),"Overdue","OK") | Days overdue as a number: =MAX(0,TODAY()-A2). |
| Google Sheets | =IF(A2<TODAY(),"Overdue","OK") | Identical. |
| LibreOffice Calc | =IF(A2<TODAY(),"Overdue","OK") | Identical. |
How it works
Dates compare like numbers, so due-date < today means the deadline has passed (the verification pins both dates so the result never changes; in your sheet use TODAY(), which keeps the flags current every day). Useful refinements: MAX(0,TODAY()-A2) counts days overdue without going negative for future dates, a "Due soon" tier is IFS(A2<TODAY(),"Overdue",A2<=TODAY()+7,"Due soon",TRUE,"OK"), and blank due-dates need an IF(A2="","",...) guard so empty rows don't all read Overdue.
Verified, not just documented
We ran =IF(DATE(2026,7,1)<DATE(2026,7,23),"Overdue","OK") in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned Overdue — exactly the expected result. We then ran the same formulas in Google Sheets, executed 2026-08-30: a formula-only workbook goes into Google Drive, which converts it to a Sheet and recalculates every formula with Google’s own engine, and comes back out as .xlsx carrying the values Google computed. It returned Overdue for the worked example, the same value LibreOffice produced. Both engines’ numbers on this page are executed results. The Excel formula follows Microsoft’s official documented syntax — we do not run desktop Excel.
Functions used
IF · TODAY — see full Excel, Google Sheets & LibreOffice compatibility for each.
Related recipes
- How to count business days left in the month
- How to calculate age in years from a birth date
- How to compare two columns row by row
- How to concatenate cells that meet a condition (TEXTJOIN IF)
- How to convert Yes/No (or TRUE/FALSE) to 1 and 0