LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default calculate months between two dates

Hi,

I would like to get the amount of months difference between two dates. I
used datediff but that would only give me the months as a whole number. Is
there a way to get a decimal number?

i.e. date1 = 04/01/09; date2 = 06/30/09

datediff("m", date1, date2) = 2 months

but I would like the answer to be 2.9 something.... is this possible?

- Thanks!
--
Learning
 
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
How can I calculate fractional months between two dates? JulesMacD Excel Discussion (Misc queries) 4 April 3rd 23 06:56 PM
How calculate exact # of months between two dates? Mark Livingstone Excel Worksheet Functions 9 July 22nd 09 01:23 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
How do I calculate how many days in which months given two dates . Nick Rogers Excel Programming 1 November 3rd 04 03:29 PM


All times are GMT +1. The time now is 01:54 AM.

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

About Us

"It's about Microsoft Excel"