Overdue flag
| A | |
|---|---|
| 1 | Due date |
| 2 | 1/15/2020 |
Formula: C1: =IF(A2<TODAY(),"Overdue","Open")
Result: Overdue
A due date in the past compares smaller than TODAY().
Today's date. Changes every day.
TODAY()Example: =TODAY()
Available in: All versions
TODAY returns the current date and updates every time the workbook recalculates: =TODAY(). It takes no arguments and is the base for ages, deadlines, overdue flags and days-left counters.
| A | |
|---|---|
| 1 | Due date |
| 2 | 1/15/2020 |
Formula: C1: =IF(A2<TODAY(),"Overdue","Open")
Result: Overdue
A due date in the past compares smaller than TODAY().
| A | |
|---|---|
| 1 | Hire date |
| 2 | 1/1/2000 |
Formula: C1: =DATEDIF(A2,TODAY(),"y")>=5
Result: TRUE
DATEDIF returns completed years between the hire date and today.
| A | |
|---|---|
| 1 |
Formula: A1: =EOMONTH(TODAY(),0)>=TODAY()
Result: TRUE
The last day of the current month is never before today.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =TODAY()
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Start | End | Holiday | Time | Result | |
| 2 | 3/15/2026 | 6/20/2026 | 5/1/2026 | 14:45 | 10/28/2026 | |
| 3 | 1/31/2026 | 2/28/2026 | 5/9/2026 | 09:30 | ||
| 4 | 12/24/2025 | 1/9/2026 |
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page