Back to functions
Date & Time2026-03-185 related articles

YEAR Function in Excel

Return the year from a valid Excel date.

Syntax

YEAR(serial_number)

Arguments

serial_number

Required

The date of the year you want to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2025,5,23) for the 23rd day of May, 2025. Problems can occur if dates are entered as text.

What it returns

Returns the year as a four-digit integer.

What YEAR does

YEAR extracts the year portion from a valid Excel date. It is useful for reporting, grouping data by year, and building date logic that depends on the calendar year.

Practical examples

Extract the year from a date cell

=YEAR(A2)

If A2 contains 2026-03-19, the result is 2026.

Extract the year from a generated date

=YEAR(DATE(2030,6,15))

This returns 2030 and works well when the date is created inside another formula.

Common mistakes and notes

YEAR expects a real Excel date

If the input is text that only looks like a date, YEAR may return an error or parse it incorrectly.

YEAR does not format the original date

It returns only the numeric year. If you want the full original date to display differently, use cell formatting or the TEXT function.

Time values are ignored

If a cell contains a date-time value, YEAR uses the date portion only.

Related functions

Related articles

Deep dives, troubleshooting guides, and practical examples that use YEAR.

Official documentation