# Google Sheets YEAR Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/year-function
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

The YEAR function extracts the year from a given date, returning it as a four-digit number for easy analysis and calculations.

```
YEAR(date)
```

Generate FormulaExplain Formula

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Describe the YEAR you need in plain EnglishGenerate Formula

## Parameters

**`date`**:\
The date from which you want to extract the year. This can be a cell reference containing a date, a date value, or a formula that returns a date.

## What is the YEAR Function in Google Sheets?

The *YEAR* function in Google Sheets is a simple yet effective tool used to extract the year from a given date. This function is particularly useful when you need to analyze data over different years or when you want to categorize your data based on the year.

In simpler terms, the YEAR function allows you to take a date and retrieve just the year part of that date, making it easier to work with time-based data.

## A Practical Example

Imagine you are managing a sales record stored in a Google Sheets spreadsheet:

### Sales Table:

| SaleID | SaleDate | Amount |
| - | - | - |
| 1 | 2023-01-15 | 100.00 |
| 2 | 2022-05-22 | 150.00 |
| 3 | 2023-03-10 | 200.00 |

You want to extract the year from each sale date to analyze sales by year.

## YEAR Formula

To achieve this, you would use the YEAR function as follows:

```
=YEAR(B2)
```

In this formula:

- `B2` is the cell containing the SaleDate from the Sales Table.

## Result of the Formula

When you apply the YEAR formula to the Sales Table, the output would look like this:

| SaleID | SaleDate | Amount | Year |
| - | - | - | - |
| 1 | 2023-01-15 | 100.00 | 2023 |
| 2 | 2022-05-22 | 150.00 | 2022 |
| 3 | 2023-03-10 | 200.00 | 2023 |

By adding a new column for the Year, you can easily see which year each sale occurred.

## Why Use YEAR?

The YEAR function is beneficial because it simplifies the process of analyzing data over time. It allows you to categorize and summarize your data based on years without needing to manually parse dates. This can be particularly useful for generating reports, creating charts, or performing time-based calculations.

## Key Takeaways:

- **YEAR**: A straightforward function that extracts the year from a date.
- **Data Analysis**: Helps in categorizing and summarizing data based on years.
- **Simplicity**: Easy to use and implement in your spreadsheets.
- **Common Use Cases**: Ideal for financial reports, sales tracking, and any scenario where year-based analysis is necessary.

The YEAR function is an essential tool for anyone working with date-related data in Google Sheets, providing a quick way to enhance your data analysis capabilities.

Happy spreadsheeting!

## Example use case

You have a table with dates in Column A and sales figures in Column B. By using the YEAR formula, you can extract the year from each date, allowing you to easily analyze sales trends by year and create summaries or charts for better insights.

## Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Google Sheets how-to guides

- [How To Separate Names In Google Sheets](https://betteranalyst.com/google-sheets/how-to-separate-names-in-google-sheets)
- [How To Sort In Google Sheets](https://betteranalyst.com/google-sheets/how-to-sort-in-google-sheets)
- [How To Split Cells In Google Sheets](https://betteranalyst.com/google-sheets/how-to-split-cells-in-google-sheets)
- [How To Strikethrough In Google Sheets](https://betteranalyst.com/google-sheets/how-to-strikethrough-in-google-sheets)
- [How To Subtract In Google Sheets](https://betteranalyst.com/google-sheets/how-to-subtract-in-google-sheets)
- [How To Transpose Data In Google Sheets](https://betteranalyst.com/google-sheets/how-to-transpose-data-in-google-sheets)
- [How To Unhide Columns In Google Sheets](https://betteranalyst.com/google-sheets/how-to-unhide-all-columns-in-google-sheets)
- [How To Unhide Rows In Google Sheets](https://betteranalyst.com/google-sheets/how-to-unhide-all-rows-in-google-sheets)

## Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

## Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

1. [01ChatGPTOpen a balanced comparison prompt in ChatGPT.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.
