Date and time

YEAR

Extract the four-digit year from a date.

Syntax

=YEAR(serial_number)

Worked example

Extract a date’s year for grouping records.

=YEAR(DATE(2026,3,9))

Result 2026

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor