
📎 This article includes 1 downloadable practice file ↓
In this article
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).
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
| Date | Formula | Result |
|---|---|---|
| 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
| Mistake | What to do instead |
|---|---|
| Indian financial year | YEAR alone gives the calendar year; subtract 1 for Jan-Mar |
| Text dates | Convert first |
Related functions
MONTH · DAY · DATE
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
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.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time — plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul →Build this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.