YEAR Function Excel
This Excel Tutorial demonstrates how to use the Excel YEAR Function in Excel to return the year from a date, with formula examples.
YEAR Function Description:
The YEAR Function Returns the year of a date.
|Date & Time||=YEAR(C6)||2015|
Syntax and Arguments:
The Syntax for the YEAR Formula is:
Function Arguments ( Inputs ):
serial_number – The date in Excel serial number format or entered as a date with quotations (“s) surround the date. Example: You can not enter 11/12/2015 directly into the cell. Instead you need to enter “11/12/2015” or you would need to use the corresponding serial number: 42320. Alternatively, you can reference a cell with the date 11/12/2015 entered. Excel automatically converts dates stored in cells into serial format (unless the date is entered as text).
Enter any date or serial number corresponding to a date. Date must not be stored as text.
YEAR Examples in VBA
You can also use the YEAR function in VBA. Type:
For the function arguments (serial_number, etc.), you can either enter them directly into the function, or define variables to use instead.
Return to the List of all Functions in Excel
How to use the YEAR Function in Excel:
To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=YEAR(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
For more information about the YEAR Formula visit the