Today's date: TODAY and DATEDIF: practice exercises
TODAY, DATEDIF, days until, overdue, age. 5 exercises on real-looking data, each marked the moment you press Check. The first exercise is below to try now; the full lesson is part of Pro.
In C2, work out how many days are left until each deadline, counting from today. Use TODAY().
| A | B | C | |
|---|---|---|---|
| 1 | Task | Deadline | Days left |
| 2 | Audit pack | 22/01/2027 | |
| 3 | Supplier review | 08/03/2027 | |
| 4 | Fire drill | 23/12/2026 | |
| 5 | Insurance renewal | 13/02/2027 | |
| 6 | Training plan | 19/03/2027 | |
| 7 | Budget bid | 31/01/2027 | |
| 8 | Website update | 26/01/2027 | |
| 9 | Annual report | 07/12/2026 | |
| 10 | Office move | 28/02/2027 | |
| 11 | Staff survey | 28/12/2026 |
How it works
TODAY() gives today's date. It has no arguments, but still needs its brackets. It updates every time the workbook opens, so a sheet that uses it is always up to date: days until a deadline, what's overdue, how old someone is.
DATEDIF(start, end, "y") counts the whole years between two dates ("m" for months, "d" for days). It's the reliable way to work out an age or length of service.
=TODAY() =A2-TODAY() =DATEDIF(A5,TODAY(),"y")
Today's date
=TODAY() shows today's date. Use it inside other formulas:
deadline - TODAY(): days left. A negative number means it has passed.TODAY() - date: days since.IF(date<TODAY(), "Overdue", ""): flag anything before today.
Because TODAY() changes, so do the answers. Here they're checked against today's date, the day you do them.
Worked example: days left
| A | B | C | |
|---|---|---|---|
| 1 | Deadline | Days left | |
| 2 | 31/12/2030 | ||
| 3 | |||
| 4 | |||
| 5 | Date of birth | Age | |
| 6 | 15/06/1990 |
=A2-TODAY()in B2. The later date minus the earlier one. With the deadline first, the answer is positive while the deadline is still to come.
Worked example: age with DATEDIF
| A | B | C | |
|---|---|---|---|
| 1 | Deadline | Days left | |
| 2 | 31/12/2030 | ||
| 3 | |||
| 4 | |||
| 5 | Date of birth | Age | |
| 6 | 15/06/1990 |
=(TODAY()-A6)/365in B6. Dividing the days by 365 gives a decimal, and leap years make it creep out. Not what anyone means by their age.=DATEDIF(A6,TODAY(),"y")in B6.DATEDIF(start, end, "y")counts whole years, ticking over exactly on the birthday. The earlier date goes first, or it gives #NUM!.
What you'll practise
- In C2, work out how many days are left until each deadline, counting from today. Use TODAY().
- Each van needs a service once a year. In C2, work out how many days it has been since each van's last service.
- In C2, show Overdue if the invoice's due date is before today, and leave the cell empty otherwise.
- In C2, work out each person's age in whole years, using DATEDIF and TODAY.
- Long service awards go to people with 10 or more full years. In C2, work out each person's full years of service.
Guides with worked examples: Insert today's date in Excel: Ctrl+; · Hours worked in Excel: shifts, breaks and timesheets