Article ID: 214134 - Last Review: January 24, 2007 - Revision: 5.2 How to calculate the number of months between two dates in ExcelThis article was previously published under Q214134 On This PageSUMMARY
This step-by-step article shows you how to calculate the number of months
between any two dates. To calculate the number of months between any two dates, use one of the following methods. Note that both methods use the following information:
Round UpThis method does not use the day of the month in its calculations. For example, given a start date of 10/31/00 and an end date of 11/2/00, one month is returned even though only two days elapsed.For this method, use the following formula
=(YEAR(LDate)-YEAR(EDate))*12+MONTH(LDate)-MONTH(EDate)
as shown in the following example:
Round DownThis method uses the number days in its calculations and rounds down to the nearest number of whole months. For example, given a start date of 10/30/00 and an end date of 11/30/00, one month is returned; however, an end date of 11/29/00 returns a zero.For this method, use the following formula
=IF(DAY(LDate)>=DAY(EDate),0,-1)+(YEAR(LDate)-YEAR(EDate))
as shown in the following example:
*12+MONTH(LDate)-MONTH(EDate)
| Article Translations
|

Back to the top
