YEAR(serial_number)

Returns the year as an integer given a date serial number.

serial_numberThe date that contains the year you want to find.

Remarks

* The "serial_number" can be a date value, a serial number or a reference to a cell containing a date.
* If "serial_number" < 0, then #NUM! is returned.
* If "serial_number" is not a valid date, then #VALUE! is returned.
* You can use the DATE function to return the date as a date serial number given a year, month, day.
* You can use the DATEVALUE function to return the serial number representing a date in a text format.
* You can use the DAY function to return the day as an integer given a date serial number.
* You can use the MONTH function to return the month as an integer given a date serial number.
* You can use the NOW function to return the serial number of the current system date and time.
* You can use the TODAY function to return the serial number of the current system date.
* For the Microsoft documentation refer to support.office.com

 AB
1=TODAY() = Thursday, November 07, 2019 
2=NOW() = Thursday, November 07, 2019, 11:02 
3=YEAR(B3) = 200301 July 2003
4=YEAR("01 July 2003") = 2003=NOW() = 07/11/2019
5=YEAR(B4) = 2019=NOW() = 43776
6=YEAR(38093) = 2004 
7=YEAR(DATE(1977,7,1)) = 1977 
8=YEAR(0) = 1900 
9=YEAR(-10) = #NUM! 
10=YEAR("some text") = #VALUE! 

1 - What is the current system date. This cell has been formatted with the number format "dddd, mmmm dd, yyyy".
2 - What is the current system date and time. This cell has been formatted with the number format "dddd, mmmm dd, yyyy, hh:mm".

© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited Top