YEAR Function in Excel: Year From a Date

YEAR Function in Excel: Year From a Date featured illustration

📎 This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 28 September 2026

Date & TimeLevel: BeginnerAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Common errors and fixes
  6. YEAR in practice
  7. Where you will use it
  8. Worked example
  9. Mistakes people make
  10. Related functions
  11. Continue learning

YEAR returns the four-digit year of a date. MONTH and DAY work the same way for the month (1–12) and day (1–31).

Advertisement

Syntax

=YEAR(serial_number)
Argument What it means
serial_number A real date (not text that looks like a date).

Examples

Example 1

=YEAR(A2)

2017 from 12-Jul-2017.

Example 2

=YEAR(A2)+(MONTH(A2)>=4)

Indian financial-year end year: 12-Jul-2017 → 2018 (FY 2017–18).

Common errors and fixes

You see Why, and the fix
#VALUE! The “date” is text. Convert with DATEVALUE or Text to Columns.
Returns 1900 The cell is empty or contains a small number, not a date.

YEAR in practice

Where you will use it

  • Group sales by year
  • Financial year start: YEAR(d)-(MONTH(d)<4)
  • Age calculations

Worked example

DateFormulaResult
04-Oct-2026=YEAR(A2)2026
15-Feb-2027=YEAR(A3)2027
31-Dec-2019=YEAR(A4)2019

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Indian financial yearYEAR alone gives the calendar year; subtract 1 for Jan-Mar
Text datesConvert first

MONTH · DAY · DATE

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

⚡ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

📎 Practice files for this article

  • 📗
    Practice workbook: Dates & times22 tasks on realistic sales data — type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX · 34 KB

Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong