YEAR - The function returns the year corresponding to a date in Excel
The following article introduces you to the YEAR function - one of the functions in the date and time group function is very popular in Excel.
Description: The function returns the year value corresponding to a date in Excel. The year value is an integer between 1900 and 9999.
Syntax: YEAR (serial_number).
Inside:
- serial_number: Date to search for the year value, is a required parameter.
Attention:
- Excel stores the date as a serial number to facilitate the calculation process.
- The value returned in the YEAR function will be a Gregorian value regardless of the format.
For example:
Calculate the corresponding annual value of the following specific dates:
- In the cell to calculate enter the formula: = YEAR (F7)
- Press Enter -> the corresponding year is:
- Similarly copying the formula for the remaining values results:
- In case of incorrect input value serial_number -> function returns error value #VALUE!
Above are instructions and some specific examples when using the YEAR () function in Excel.
Good luck!
You should read it
- The DAY function - The function returns the day of the day, month and year in Excel
- SQL Server YEAR function
- ISOWEEKNUM function - The function returns the ordinal number of the year of the week that contains the given date in Excel
- How to separate the date, month, and year columns into 3 different columns in Excel
- NOW function - The function returns the current date and time in Excel
- DATE function - The date function in Excel
- WEEKNUM function - The function returns the week number of the year in Excel
- Instructions on how to fix reverse dates in Excel
May be interested
- YEARFRAC function - The function returns the fifth calculated by the number of whole days between two specific dates in Excelyearfrac function: the function returns the fifth calculated by the number of whole days between two specific dates in excel. syntax: yearfrac (start_date, end_date, [basis])
- NETWORKDAYS.INTL function - The function returns the number of whole working days between 2 dates, specifying weekends in Excelnetworkdays.intl: the function returns the number of whole working days between two dates by using a parameter that determines the number of weekends and which day of the week. syntax: networkdays.intl (start_date, end_date, [weekend], [holidays])
- DATEDIF function - The function calculates the number of days, months, years between 2 dates in Exceldatedif function: the function performs the calculation of number of days, months, years between 2 dates in excel. functions are useful in formulas for calculating age numbers. syntax: datedif (start_date, end_date, unit)
- DATEVALUE function - Functions to convert text format dates to serial numbers in Exceldatevalue function: the function converts the stored date value as text into a serial number recognized by excel. the function is useful in cases where the worksheet contains the date format you want to filter or sort. syntax: datevalue (date_text)
- DAY function - The function returns the date value of a specific date in Excelthe day function: the function returns a date value in a specific date, month, and year format in excel. syntax: day (serial_number)
- The DAYS function - The function returns the number of days between 2 dates in Exceldays function: the function returns the number of days between 2 dates, the support function from excel 2013 onwards. syntax: days (end_date, start_date)