---
title: "YEAR function in Excel: syntax and examples | PracticeExcel"
description: "How to use YEAR in Excel and Google Sheets: get the year from a date, for grouping and ages."
canonical_url: "https://practiceexcelonline.com/functions/year"
locale: en
meta:
  "og:description": "How to use YEAR in Excel and Google Sheets: get the year from a date, for grouping and ages."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~WUVBUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBZRUFSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBnZXQgdGhlIHllYXIgZnJvbSBhIGRhdGUsIGZvciBncm91cGluZyBhbmQgYWdlcy4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_YEAR(serial__number)%2Cp_Ii9mdW5jdGlvbnMveWVhciI%2Cs_-bWza9r90YgmS1-V.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "YEAR function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~WUVBUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBZRUFSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBnZXQgdGhlIHllYXIgZnJvbSBhIGRhdGUsIGZvciBncm91cGluZyBhbmQgYWdlcy4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_YEAR(serial__number)%2Cp_Ii9mdW5jdGlvbnMveWVhciI%2Cs_-bWza9r90YgmS1-V.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The YEAR function**

Returns the year of a date as a number.

=

YEAR(

## **Syntax**

```
YEAR(serial_number)
```

<dl><dt>**serial_number **</dt>
<dd>The date.</dd></dl>

## **Examples**

C1=YEAR(A2)

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Date |  | **2024** |
| 2 | 45366 |  | |

C1=YEAR(A2)-YEAR(DATE(1990,6,1))

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Date |  | **34** |
| 2 | 45366 |  | |

## **Read the guide**

- [**Dates in Excel: how they work and the formulas you need**](https://practiceexcelonline.com/learn/excel-dates)

## **Related functions**

- [**MONTH**](https://practiceexcelonline.com/functions/month)
- [**DATE**](https://practiceexcelonline.com/functions/date)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/year#webpage","@type":"WebPage","description":"How to use YEAR in Excel and Google Sheets: get the year from a date, for grouping and ages.","name":"YEAR function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/year","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/year#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/year"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/year#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"YEAR function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/year#article","description":"How to use YEAR in Excel and Google Sheets: get the year from a date, for grouping and ages.","headline":"YEAR function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~WUVBUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBZRUFSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBnZXQgdGhlIHllYXIgZnJvbSBhIGRhdGUsIGZvciBncm91cGluZyBhbmQgYWdlcy4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_YEAR(serial__number)%2Cp_Ii9mdW5jdGlvbnMveWVhciI%2Cs_-bWza9r90YgmS1-V.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/year#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/year#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~WUVBUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBZRUFSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBnZXQgdGhlIHllYXIgZnJvbSBhIGRhdGUsIGZvciBncm91cGluZyBhbmQgYWdlcy4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_YEAR(serial__number)%2Cp_Ii9mdW5jdGlvbnMveWVhciI%2Cs_-bWza9r90YgmS1-V.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~WUVBUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBZRUFSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBnZXQgdGhlIHllYXIgZnJvbSBhIGRhdGUsIGZvciBncm91cGluZyBhbmQgYWdlcy4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_YEAR(serial__number)%2Cp_Ii9mdW5jdGlvbnMveWVhciI%2Cs_-bWza9r90YgmS1-V.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
