Confident CellsExcel practice Start free

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.

Your turn

In C2, work out how many days are left until each deadline, counting from today. Use TODAY().

ABC
1TaskDeadlineDays left
2Audit pack22/01/2027
3Supplier review08/03/2027
4Fire drill23/12/2026
5Insurance renewal13/02/2027
6Training plan19/03/2027
7Budget bid31/01/2027
8Website update26/01/2027
9Annual report07/12/2026
10Office move28/02/2027
11Staff survey28/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

ABC
1DeadlineDays left
231/12/2030
3
4
5Date of birthAge
615/06/1990
  1. =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

ABC
1DeadlineDays left
231/12/2030
3
4
5Date of birthAge
615/06/1990
  1. =(TODAY()-A6)/365 in B6. Dividing the days by 365 gives a decimal, and leap years make it creep out. Not what anyone means by their age.
  2. =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

  1. In C2, work out how many days are left until each deadline, counting from today. Use TODAY().
  2. Each van needs a service once a year. In C2, work out how many days it has been since each van's last service.
  3. In C2, show Overdue if the invoice's due date is before today, and leave the cell empty otherwise.
  4. In C2, work out each person's age in whole years, using DATEDIF and TODAY.
  5. 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