Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
effem
 
Posts: n/a
Default Difference between two dates in months with decimals


Daniel,

Thanks for your feedback, but after trying, it seems your solution has
a problem with dates in February and March and forgets to count one
month.

Bernie's solution seems to be complete and correct.

Effem.


--
effem
------------------------------------------------------------------------
effem's Profile: http://www.excelforum.com/member.php...o&userid=16112
View this thread: http://www.excelforum.com/showthread...hreadid=275586

  #2   Report Post  
Daniel.M
 
Posts: n/a
Default

Hi,

Thanks for the feedback.

It failed on any dates where DAY(A1) DAY(B1).

You can try :

=(DATEDIF(A1,B1,"m")+(DAY(A1)DAY(B1))-DAY(A1)/(32-DAY(A1-DAY(A1)+32))+
DAY(B1)/(32-DAY(B1-DAY(B1)+32)))*1000

If this one fails, I'd appreciate if you'd let me know for which dates (and the
expected results).

Regards,

Daniel M.


"effem" wrote in message
...

Daniel,

Thanks for your feedback, but after trying, it seems your solution has
a problem with dates in February and March and forgets to count one
month.

Bernie's solution seems to be complete and correct.

Effem.


--
effem
------------------------------------------------------------------------
effem's Profile:

http://www.excelforum.com/member.php...o&userid=16112
View this thread: http://www.excelforum.com/showthread...hreadid=275586



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
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM
due dates Niki New Users to Excel 4 January 10th 05 04:11 PM
How do I display months and years between two dates JSmith Excel Discussion (Misc queries) 1 November 30th 04 04:41 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 3 November 5th 04 05:23 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 0 November 5th 04 02:14 PM


All times are GMT +1. The time now is 03:07 PM.

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"