
Date & TimeLevel: BeginnerAvailable in: Excel 2007+
In this article
- Syntax
- Examples
- Example 1
- Example 2
- Common errors and fixes
- Related functions
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. |
MONTH · DAY · DATE
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong