Function Name: DATEDIF
Main functions: calculating a difference parameter returns two dates.
使用格式:=DATEDIF(date1,date2,"y")、=DATEDIF(date1,date2,"m")、=DATEDIF(date1,date2,"d")
Parameters: date1 foregoing represents a date, a date later DATE2 Representative; y (m, d) required to return the phase difference in the two dates (month, day) number.
Example: enter the formula in cell C23: = DATEDIF (A23, TODAY ( ), "y"), the system returns the current date to confirm [() represented by TODAY) difference between the date of the cell A23, and returns a difference of a few years.
Special note: This is a hidden function in Excel, in the Function Wizard is not found, you can enter directly use, very effective for the calculation of the age, length of service and so on.