Exercises
Google Sheets
Excel tests
Functions
Shortcuts
Sign in
Home
Excel functions
YEAR
←
Excel functions
The YEAR function
Returns the year of a date as a number.
=
YEAR(
Syntax
YEAR(serial_number)
serial_number
The date.
Examples
C1
=YEAR(A2)
A
B
C
1
Date
2024
2
45366
C1
=YEAR(A2)-YEAR(DATE(1990,6,1))
A
B
C
1
Date
34
2
45366
Read the guide
Dates in Excel: how they work and the formulas you need
Related functions
MONTH
DATE