Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default 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.
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: How can I calculate fractional months between two dates?

  1. Code:
    =DATEDIF("6/16/2008","12/31/2008","d")
  2. Code:
    =DATEDIF("6/16/2008","12/31/2008","d")/30.44
  3. Format the result as a number with one decimal place.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,549
Default 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.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How can I calculate fractional months between two dates?

=(B1-A1)/30.4375 and format as a number
--
Gary''s Student - gsnu200791
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate Number of Months Weeks and Days Between Two Dates [email protected] Excel Worksheet Functions 4 September 22nd 06 01:47 AM
Calculate number of months between dates steph44haf Excel Worksheet Functions 1 August 15th 06 04:05 PM
Calculate number of months between 2 dates john liem New Users to Excel 4 June 1st 05 02:08 PM
Calculate number of months between 2 dates john liem New Users to Excel 0 June 1st 05 10:06 AM
Calculate Years/Months Between Dates and then Average Missy Excel Discussion (Misc queries) 3 February 12th 05 04:19 AM


All times are GMT +1. The time now is 04:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"