Practice by topic / Excel / Dates & Times

DATE, YEAR, MONTH and DAY Exercises

These 10 exercises build up step by step, starting with build a date from parts, get the year, get the month number.

3 of 10 free · no sign-up needed · graded on the formula you write

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.

ABCD
1YearMonthDayDate
22026315?
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.

AB
1Invoice dateYear
215 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.

AB
1Order dateMonth
24 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 →
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.

AB
1Expense dateMonth start
219 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.

AB
1Transaction dateFinancial year
210 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.

ABC
1Order dateMarch orders
227 Feb 2026?
32 Mar 2026
415 Mar 2026
531 Mar 2026
61 Apr 2026
79 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.

ABCD
1DateAmountMarch sales
227 Feb 2026500?
32 Mar 20261200
415 Mar 2026800
531 Mar 2026300
61 Apr 2026900
79 Mar 2026450

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 →