The Excel YEAR function is used to extract the year from a given input date, providing a 4-digit year value.
Introduced in Excel version 1.0, the function extracts the year accurately from various date formats.
The basic syntax of the YEAR function is =YEAR(serial_number), where serial_number represents the date to extract the year from.
Supported input formats for the YEAR function include direct dates, cell references, Excel serial numbers, DATE function, DATEVALUE function, NOW() or TODAY(), and text date strings.
Examples demonstrate how the function handles valid dates, leap years, serial date interpretation, and error cases.
The YEAR function can be combined with other nested functions for various scenarios, such as age calculation, leap year checks, and text formatting.
By using the YEAR function in Excel, users can manipulate and analyze date-related data efficiently for diverse applications.
Excel24x7.com provides a range of tutorials on Excel functions and features for users to enhance their spreadsheet skills.