All 10 DATE, YEAR, MONTH and DAY exercises
1
Build a Date From Parts
Free
A2, B2 and C2 hold a year, month and day from a system export. Write a formula in D2 that turns them into a real date.
| A | B | C | D |
|---|
| 1 | Year | Month | Day | Date |
|---|
| 2 | 2026 | 3 | 15 | ? |
|---|
Show the solution
DATE takes the year, month and day, in that order. Use =DATE(A2,B2,C2)
Right — DATE builds a real date that Excel can sort, filter and do maths on, unlike text that only looks like a date.
Expected result in D2: 46096
Try it in the live spreadsheet →
2
Get the Year
Free
A2 holds an invoice date. Write a formula in B2 that returns its year.
| A | B |
|---|
| 1 | Invoice date | Year |
|---|
| 2 | 15 Mar 2026 | ? |
|---|
Show the solution
YEAR takes one date. Use =YEAR(A2)
Good — YEAR pulls the year out of a real date, ready for grouping reports by year.
Expected result in B2: 2026
Try it in the live spreadsheet →
3
Get the Month Number
Free
A2 holds an order date. Write a formula in B2 that returns the month as a number from 1 to 12.
| A | B |
|---|
| 1 | Order date | Month |
|---|
| 2 | 4 Nov 2026 | ? |
|---|
Show the solution
MONTH takes one date. Use =MONTH(A2)
Right — MONTH returns 1 to 12, which is handy for monthly summaries.
Expected result in B2: 11
Try it in the live spreadsheet →
4
Get the Day of the Month
A2 holds an order date. Write a formula in B2 that returns the day of the month.
| A | B |
|---|
| 1 | Order date | Day |
|---|
| 2 | 4 Nov 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
First Day of the Month
A2 holds an expense date. Write a formula in B2 that returns the first day of that month, so expenses can be grouped by month.
| A | B |
|---|
| 1 | Expense date | Month start |
|---|
| 2 | 19 Aug 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
Same Date Next Year
A2 holds the start date of a one-year policy. Write a formula in B2 that returns the same date one year later.
| A | B |
|---|
| 1 | Policy start | Renewal |
|---|
| 2 | 31 May 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
Which Quarter?
A2 holds a sale date. Write a formula in B2 that returns its calendar quarter as a number from 1 to 4.
| A | B |
|---|
| 1 | Sale date | Quarter |
|---|
| 2 | 20 Aug 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
Name the Financial Year
Your financial year runs from April to March and is named after the year it ends in. A2 holds a transaction date. Write a formula in B2 that returns the financial year it belongs to.
| A | B |
|---|
| 1 | Transaction date | Financial year |
|---|
| 2 | 10 May 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 →
9
Count Orders in March
A2:A7 hold order dates. Write a formula in C2 that counts the orders placed in March 2026.
| A | B | C |
|---|
| 1 | Order date | | March orders |
|---|
| 2 | 27 Feb 2026 | | ? |
|---|
| 3 | 2 Mar 2026 | | |
|---|
| 4 | 15 Mar 2026 | | |
|---|
| 5 | 31 Mar 2026 | | |
|---|
| 6 | 1 Apr 2026 | | |
|---|
| 7 | 9 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 →
10
Sales in March
A2:A7 hold sale dates and B2:B7 the amounts. Write a formula in D2 that totals the sales made in March 2026.
| A | B | C | D |
|---|
| 1 | Date | Amount | | March sales |
|---|
| 2 | 27 Feb 2026 | 500 | | ? |
|---|
| 3 | 2 Mar 2026 | 1200 | | |
|---|
| 4 | 15 Mar 2026 | 800 | | |
|---|
| 5 | 31 Mar 2026 | 300 | | |
|---|
| 6 | 1 Apr 2026 | 900 | | |
|---|
| 7 | 9 Mar 2026 | 450 | | |
|---|
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 →