September 2011
Beginner
140 pages
3h 40m
English
The YEAR function is used to convert a date given in any recognizable format into a year number. For example:
=YEAR(DATE(2010; 11; 1))
returns 2010.
Figure 12-9. Sample result of the YEAR function
You can give YEAR the date in a more natural format:
=YEAR("3/17/2010")
returns 2010 (March 17, 2010).
See the description of the DATE function, Number of Days in a Month (DAYSINMONTH).
The DAYSINMONTH function returns the number of days in the given date. For example:
=DAYSINMONTH(DATE(2012; 2; 16))
returns 29 (February 2012 has 29 days because the year 2012 is a leap ...
Read now
Unlock full access