KrazyKasper
Board Regular
- Joined
- Aug 28, 2008
- Messages
- 87
I need to calculate the number of months between two dates, but if the earlier date is not the first of the month then use the first of the next month as the earlier date.
I tried modifying the formula:
=(YEAR(LDate)-YEAR(EDate))*12+MONTH(LDate)-MONTH(EDate)
but have not had any success.
Using the following dates as an example:
EDate 11/4/06
LDate 5/31/11
The result should be: 54
Using the following dates:
EDate 11/1/06
LDate 5/31/11
The result should be: 55
Any help is appreciated.
I tried modifying the formula:
=(YEAR(LDate)-YEAR(EDate))*12+MONTH(LDate)-MONTH(EDate)
but have not had any success.
Using the following dates as an example:
EDate 11/4/06
LDate 5/31/11
The result should be: 54
Using the following dates:
EDate 11/1/06
LDate 5/31/11
The result should be: 55
Any help is appreciated.