Excel YEAR function
Returns the year of a date as a four-digit number. In Spanish Excel it is called AÑO.
Syntax
English Excel
=YEAR(serial_number)
Spanish Excel (Mexico)
=AÑO(núm_de_serie)
Spanish Excel (Spain, Latin America)
=AÑO(núm_de_serie)
| Argument | What it is |
|---|---|
| serial_number | The date. |
Example
To Excel a date is a number: the days since January 1, 1900 (10/30/2026 is 46325). That is why dates can be added and subtracted. YEAR, MONTH and DAY pull out each part.
=YEAR(A2)
Common mistake
If the "date" is text (left-aligned), YEAR returns #VALUE!; convert it to a date first.
About Ads
This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.
Ads help us keep WebHerramientas free for everyone
Practice YEAR
Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons
YEAR, MONTH and DAY
To Excel a date is a number: the days since January 1, 1900 (10/30/2026 is 46325). That is why dates can be added and subtracted. YEAR, MONTH and DAY pull out each part.
In B2, extract the year from the sale date.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Sale date | Year | Month | |
| 2 | 11/28/2025 | |||
| 3 | 01/15/2026 | |||
| 4 | 03/02/2026 | |||
| 5 | 07/19/2026 | |||
| 6 | 12/24/2026 | |||
| 7 |
Tip: while typing, click a cell or drag across several to insert their reference.
Frequently asked questions
- What is YEAR called in Spanish?
- In Spanish Excel it is AÑO. The formula =YEAR(A2) is written =AÑO(A2) (or with commas in Mexico).
- Why does YEAR use semicolons in some Excel versions?
- It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
- What is the most common YEAR mistake?
- If the "date" is text (left-aligned), YEAR returns #VALUE!; convert it to a date first.