All 10 DATEDIF and TODAY exercises
1
Age in Full Years
Free
A2 holds a date of birth and B2 a report date. Write a formula in C2 that returns the person's age in full years on the report date.
| A | B | C |
|---|
| 1 | Date of birth | As of | Age |
|---|
| 2 | 21 Jul 1990 | 16 Mar 2026 | ? |
|---|
Show the solution
DATEDIF takes the start date, the end date and a unit. Use =DATEDIF(A2,B2,"Y")
Right — DATEDIF with "Y" counts only complete years, which is how ages work.
Expected result in C2: 35
Try it in the live spreadsheet →
2
Months of Service
Free
A2 holds the date an employee joined and B2 a report date. Write a formula in C2 that returns their complete months of service.
| A | B | C |
|---|
| 1 | Joined | As of | Months |
|---|
| 2 | 1 Sep 2023 | 16 Mar 2026 | ? |
|---|
Show the solution
Use DATEDIF with the "M" unit. Use =DATEDIF(A2,B2,"M")
Good — the "M" unit counts complete months.
Expected result in C2: 30
Try it in the live spreadsheet →
3
Days With DATEDIF
Free
A2 holds a start date and B2 an end date. Write a formula in C2 that uses DATEDIF to return the number of days between them.
| A | B | C |
|---|
| 1 | Start | End | Days |
|---|
| 2 | 1 Jan 2026 | 16 Mar 2026 | ? |
|---|
Show the solution
Use DATEDIF with the "D" unit. Use =DATEDIF(A2,B2,"D")
Right — "D" gives the same answer as subtracting the dates.
Expected result in C2: 74
Try it in the live spreadsheet →
4
Months Beyond Whole Years
A2 holds a joining date and B2 a report date. Write a formula in C2 that returns the months of service left over after counting whole years.
| A | B | C |
|---|
| 1 | Joined | As of | Extra months |
|---|
| 2 | 1 Sep 2023 | 16 Mar 2026 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
5
Tenure as Text
A2 holds a joining date and B2 a report date. Write a formula in C2 that returns the tenure as text, like '2 years 6 months'.
| A | B | C |
|---|
| 1 | Joined | As of | Tenure |
|---|
| 2 | 1 Sep 2023 | 16 Mar 2026 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
6
Days Until a Deadline
Assume today is 16 Mar 2026. A2 holds a deadline. Write a formula in B2 that returns the days left until it, using TODAY so it stays current.
| A | B |
|---|
| 1 | Deadline | Days left |
|---|
| 2 | 3 Apr 2026 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
7
Overdue or Open
Assume today is 16 Mar 2026. A2 holds a task's due date. Write a formula in B2 that returns 'Overdue' if the due date has passed, otherwise 'Open'.
| A | B |
|---|
| 1 | Due date | Status |
|---|
| 2 | 10 Mar 2026 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
8
Age Today
Assume today is 16 Mar 2026. A2 holds a date of birth. Write a formula in B2 that returns the person's age today in full years.
| A | B |
|---|
| 1 | Date of birth | Age |
|---|
| 2 | 5 Dec 2001 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
9
Days Since the Last Order
Assume today is 16 Mar 2026. B2 holds a customer's last order date. Write a formula in C2 that returns how many days ago that was.
| A | B | C |
|---|
| 1 | Customer | Last order | Days since |
|---|
| 2 | Lim & Co | 27 Feb 2026 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
10
Leave After 3 Months
Assume today is 16 Mar 2026. Staff can take leave after 3 complete months of service. A2 holds a joining date. Write a formula in B2 that returns 'Eligible' or 'Not yet'.
| A | B |
|---|
| 1 | Joined | Leave status |
|---|
| 2 | 20 Dec 2025 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →