Date & Time - Function YEAR / MONTH / DAY

Page visited 16160 times

 
1. A date is no more and no less that a number. Excel enumerates the days from 01/01/1900 and display the result as a date.
Excel-Exercise-Tutorial-1
 
 
 
2. For instance, February the 09 2002 is indeed, the figure 37296
Excel-Exercise-Tutorial-2
 
 
3. To display only the day of a date, you have to write the following formula
Excel-Exercise-Tutorial-3
Formule de la cellule
=DAY(Date)
 
 
4. To display the month, you have to use the next formula
Excel-Exercise-Tutorial-4
Formule de la cellule
=MONTH(Date)
 
 
5. And for the years
Excel-Exercise-Tutorial-5
Formule de la cellule
=YEAR(Date)
 
 
 
6. Now, you want to create a document with date in the headline.
These dates represente the month and instead of fill each cells, you will create a formula do to it automaticaly
Excel-Exercise-Tutorial-6
 
 
7. In the first cell, you write the current date and change the format to display only the month and the year
Excel-Exercise-Tutorial-7
Formule de la cellule
=NOW()
 
 
8. To add 1 month to the previous date, you need to break up the previous date in day, month, year and add 1 to the previous month..

In B1 the formula is:
Excel-Exercise-Tutorial-8
Formule de la cellule
=DATE(YEAR(A1) ;MONTH(A1)+1 ;DAY(A1))
 
 
 
9. In this exercise, you have to calculate the first and the last day of a month, whatever the month
Excel-Exercise-Tutorial-9