ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculate number of months between dates (https://www.excelbanter.com/excel-worksheet-functions/105084-calculate-number-months-between-dates.html)

steph44haf

Calculate number of months between dates
 
B8 = 10/15/06
J3 = 09/30/07

The formula below computes 13 months, but I need it to calculate 12.5 months.

=(YEAR($J$3)-YEAR(B8))*12+MONTH(B8)-MONTH($J$3)

Does anyone know how I can calculate the 12.5 months?

Bob Phillips

Calculate number of months between dates
 
You mean 11.5 don't you?

=DATEDIF(B8,J3,"M")+DATEDIF(B8,J3,"MD")/30

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"steph44haf" wrote in message
...
B8 = 10/15/06
J3 = 09/30/07

The formula below computes 13 months, but I need it to calculate 12.5

months.

=(YEAR($J$3)-YEAR(B8))*12+MONTH(B8)-MONTH($J$3)

Does anyone know how I can calculate the 12.5 months?





All times are GMT +1. The time now is 08:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com