YEAR
Date & timeExcel 2007The year of a date as a 4-digit number.
Syntax
YEAR(serial_number)
Examples
=YEAR(A2)
→ 2026
Related functions
More Date & time functions
Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model — verify anything important.