29. Excel How to extract the month from a date ? How to extract the year from a date ?


To extract the year, month or day use the Excel functions YEAR, MONTH or DAY respectively.

Example :

Excel 2016 Year, month and day of a date

To get the year of the date in cell A2, the formula is :

=YEAR(A2)

To get the month of the date in cell A2, the formula is :

=MONTH(A2)

To get the day of the date in cell A2, the formula is :

=DAY(A2)


<< 28. Excel How to edit a drop-down list ?

30. Excel How to save a sheet in PDF format ? >>