The YEAR function in Google Sheets is a straightforward yet essential tool for working with date-related data. It allows users to quickly extract the year from a date, making it invaluable for tasks like organizing data by year, tracking trends over time, or generating time-based reports.
Google Sheets YEAR Function
The YEAR function in Google Sheets allows you to extract the year from a given date. It’s especially useful when you’re analyzing date-specific trends, organizing data by year, or preparing yearly reports.
How It Works
The YEAR function extracts the year from a given date by converting the date into its numeric year value.
- Provide a valid date: Input the cell reference or date in the formula.
- Extract the year: The function isolates and returns only the year.
- Works with various formats: Handles standard date formats in Google Sheets.
Syntax of YEAR Function in Google Sheets
=YEAR(date)Parameters:
- date: (Required) The date from which the year will be extracted. Can be a cell reference, date function output, or a manually entered date (e.g., "2024-12-30").
How to Use the YEAR Formula in Google Sheets
Let’s go through how to use the YEAR function to extract the year from a given date in Google Sheets.
Step 1: Set Up the Data and Select a Cell
Create a table with sample dates and select a cell to enter the formula.

Step 2: Write the Formula
In a new column (e.g., Column C), use the YEAR function to extract the year from the "Hire Date" column. Enter the following formula in cell C2:
=YEAR(B2)
Step 3: Drag the Formula Down
Click and drag the fill handle (bottom-right corner of C2) to apply the formula to the rest of the rows. This will extract the year from each "Hire Date" and display it in the new column.

Step 4: Interpret the Results
The new column will display the year extracted from each "Hire Date" value.

Also Read:
What does the YEAR function do in Google Sheets?
The YEAR function in Google Sheets extracts the year from a date, allowing you to isolate and work with just the year portion of a date. It’s especially useful for organizing data by year, creating time-based reports, and analyzing trends over time.
How do I use the YEAR function in Google Sheets?
To use the YEAR function, simply type:
=YEAR(date)
Replace date with the cell reference or a date you want to extract the year from. For example, =YEAR(A1) will return the year from the date in cell A1.
Can the YEAR function work with different date formats in Google Sheets?
Yes, the YEAR function can handle various date formats in Google Sheets, including dates in text format. However, it's important to ensure that the cell contains a valid date format so that the YEAR function can correctly extract the year.
How do I extract the year from a date in Google Sheets?
To extract the year from a date, use the YEAR function. For example, if cell A1 contains "2023-05-15", the formula =YEAR(A1) will return 2023.
Can I use the YEAR function in combination with other functions in Google Sheets?
Absolutely! The YEAR function can be combined with other functions like IF, COUNTIF, and FILTER to create more advanced calculations. For instance, you could use =IF(YEAR(A1)=2023, "This year", "Other year") to categorize data based on the year.