Dates function

YEAR

Which year is this date in?

Purpose

Pull the year out of a date

Returns

A four digit number

Syntax

=YEAR(date)

ArgumentRequiredWhat goes here
dateRequiredThe cell holding the date, usually A2.

How to use YEAR

YEAR returns the year part of a date as a number you can compare and total against.

Its use is grouping and cut-off: everything dated in this year, everything that belongs in the year just closed.

It is nearly always paired with MONTH, because a month on its own does not say which year it is in and a report that mixes two Octobers is worse than one that reports neither.

Examples

Every result below is worked out by the same evaluator that marks your answers, on the sheet shown here.

Receivables ageing — October.xlsxSheet1
A receivables schedule with its reporting date above the data, the layout a real ageing uses
ABCDE
1Reporting date2026-10-31
2
3InvoiceInvoice dateTerms (days)AmountCustomer
4INV-90012026-07-14301200Calder Utilities
5INV-90022026-08-2930640Brightwell Paper
6INV-90032026-09-03453100Meridian Freight
7INV-90042026-09-3014455Thornbury Print
8INV-90052026-10-12302080Calder Utilities
9INV-90062026-10-2760725Ashgrove Catering
FormulaResult
=YEAR(B4)The year on the invoice.2026
=YEAR(B4)=YEAR(B1)Same year as the reporting date, so this invoice belongs in this year's figures.TRUE
=IF(AND(YEAR(B9)=YEAR(B1),MONTH(B9)=MONTH(B1)),"In period","Out of period")The cut-off test written properly, with the year checked as well as the month.In period

Notes

  • Dates on this site are held as text in the form 2026-10-31, which already sorts and compares in date order.
Practise YEAR in Unit 25

A reference tells you what it does. A unit makes you use it.