The DATEDIF function is one of the date and time functions. It is used to return the difference between two date values (start date and end date), based on the interval (unit) specified.
The DATEDIF function syntax is:
DATEDIF(start-date, end-date, unit)
start-date and end-date are two dates you wish to calculate the difference between.
unit is the specified interval that can be one of the following:
||The number of complete years.
||The number of complete months.
||The number of days.
||The difference between the days (months and years are ignored).
||The difference between the months (days and years are ignored).
||The difference between the days (years are ignored).
To apply the DATEDIF function,
- select the cell where you wish to display the result,
- click the Insert Function icon situated at the top toolbar,
or right-click within a selected cell and select the Insert Function option from the menu,
or click the icon situated at the formula bar,
- select the Date and time function group from the list,
- click the DATEDIF function,
- enter the required arguments separating them by commas,
- press the Enter button.
The result will be displayed in the selected cell.
Return to previous page