YEAR Function
Return the year of a date as a number. serial_number is the date, as a serial number, a date returned by another function or date text such as "2026-10-09". A negative serial number returns #NUM!, and text that is not a date returns #VALUE!.
Syntax
YEAR(serial_number)
Category: Date & Time. Minimum arguments: 1. Maximum arguments: 1.
Available for supported offline calculation.
Examples
=YEAR(45292)
The formula returns 2024: the serial number 45292 is January 1, 2024.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.