In a spreadsheet filled with extensive date data, you often only need the year values for calculations. Manually scanning through rows to extract years can be time-consuming. The Excel YEAR function helps you do this quickly and simply.
YEAR Function in Excel
Using Excel's YEAR Function - Illustrated Examples
Syntax: YEAR(serial_number)
Where: Serial_number is mandatory, representing the date within the year you want to find.
Purpose: Returns the year of a given date. The year is returned as an integer between 1900 and 9999.
For example:
- Example 1: Year(date(2014,12,3))=2014
- Example 2: Suppose we have the spreadsheet below and we want to extract the YEAR value from the Date column.
Here's what you do:
+ In cell C6, type =YEAR(B6) and then press Enter. The result in C6=2009
+ Click and drag to copy the result to the remaining cells
Tip: If you encounter errors while entering date data into your spreadsheet and it doesn't match the desired format, you can refer to How to Handle Date Errors in Excel for solutions.
So now you've learned how to use the YEAR function to extract year values from your data table. Additionally, you can explore functions like DAY and MONTH in Excel to extract day and month values.
