How can I calculate fractional months between two dates?
I have two dates: December 31, 2008 and June 16, 2008. I'd like to be able
to show the difference as 6.5 months. Any ideas? I've tried the datedif formula but it returns 6. Thank you. |
Answer: How can I calculate fractional months between two dates?
|
How can I calculate fractional months between two dates?
=DATEDIF(A1,A2,"m")+DATEDIF(A1,A2,"md")/30 and format as General.
Adjust the formula to suit your interpretation of how many days are in a month. -- David Biddulph "JulesMacD" wrote in message ... I have two dates: December 31, 2008 and June 16, 2008. I'd like to be able to show the difference as 6.5 months. Any ideas? I've tried the datedif formula but it returns 6. Thank you. |
How can I calculate fractional months between two dates?
This will get you close enough to satisfy most people... =(A2-A1)/365*12 -- Jim Cone Portland, Oregon USA http://www.realezsites.com/bus/primitivesoftware (Excel Add-ins / Excel Programming) "JulesMacD" wrote in message I have two dates: December 31, 2008 and June 16, 2008. I'd like to be able to show the difference as 6.5 months. Any ideas? I've tried the datedif formula but it returns 6. Thank you. |
How can I calculate fractional months between two dates?
=(B1-A1)/30.4375 and format as a number
-- Gary''s Student - gsnu200791 |
All times are GMT +1. The time now is 07:07 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com