Excel YEAR Function

YEAR returns the year number from an Excel date.

Use it to group rows by year, test whether dates belong to a reporting period, create year labels, or separate calendar parts for later formulas.

1
Choose a date Use a real Excel date value
2
Return the year number The result is a four-digit year number

YEAR syntax & arguments

Syntax

=YEAR(serial_number)
Required Optional
  1. 1

    serial_number

    Required

    The Excel date value, cell reference, or formula result whose year number should be returned.

Example

=YEAR(A2)

Return the year number from the date in A2.

YEAR caveats

  • The source should be a real date

    YEAR is most reliable when the input is an Excel date serial number, a date cell, or a date assembled with DATE.

  • Display format does not matter

    A date formatted as Jun 30 still has a year internally, and YEAR reads that underlying date value.

Need a full period key? Combine YEAR with MONTH, or use TEXT to format a date as a label such as "yyyy-mm".

Intro YEAR practice problem

Solve the intro problem directly here, or open it on its own page.

Open full problem

Advanced YEAR practice problems

Use YEAR alongside other Excel functions in realistic, less-prescriptive challenges.