How to calculate years and months between dates
TheDATEDIF functionis a “compatibility” function that comes from Lotus 1-2-3. DATEDIF takes three arguments: start date, end date, and unit. To explain how DATEDIF works, the table below is set up to show all options available for Unit. First, however, let’s calculate both years and months in a different way. This will give you some data to compare with the results of DATEDIF. To calculate years between dates, we can use a function called YEARFRAC....