Skip to content

Lessons in your language are coming soon. Formulas already work in your Excel language.

This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.

Excel function · Dates

YEAR

Returns the year of a date.

What it does

YEAR takes a date and returns its year as a four-digit number. It is useful for grouping or filtering records by year.

Syntax

=YEAR(serial_number)

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ;

Arguments

serial_number
The date to read, usually a cell.

Example

In which year is the date in A2?

AB
1DateYear
22026-08-212026

The formula in B2:

=YEAR(A2)

Result: 2026

2026-08-21 is in 2026, so the result is the number 2026.

Common mistakes

  • Giving it a text that only looks like a date. If the date is stored as text, convert it first, for example with DATE.
  • Formatting the result as a date. 2026 is a number; as a date it would show as a day in 1905.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishYEAR,
DeutschJAHR;
FrançaisANNEE;
Español (España)AÑO;
Español (México)AÑO,
日本語YEAR,
한국어YEAR,
繁體中文YEAR,
ไทยYEAR,
ខ្មែរYEAR,
Tiếng ViệtYEAR;

Practise it

More from this module

All functions