#1   Report Post  
Tanya
 
Posts: n/a
Default Sum of dates

I posted this question yesterday, (and yes, I realized my calculation error
after I posted. But, thanks for the corrections) but I may not have been
clear about what information I am trying to calculate. My spreadsheet is
formatted as follows:


A1 B1 D1 E1 F1
From To Years Months Days
10/16/198512/31/1989 4 2 16
1/1/1990 10/11/1990 0 9 11
2/19/1991 9/30/1991 0 7 12
Total 4 18 39

To get the years, months and days I am using the following formulas:
=DATEDIF(A4,B4,"Y"), =DATEDIF(A4,B4,"YM"), =DATEDIF(A4,B4 +1,"MD")

I now need the formula to convert the 4yrs, 18mos, 39days into 5yrs, 7mos,
30 days or 5yrs, 8mos preferrably. (Did I get it right this time?) :)
Thanks for your help!



  #2   Report Post  
Gary Brown
 
Posts: n/a
Default

Assume the sums of rows 2,3 and 4 are in D7, E7 and F7....
D8 = D7+INT(E7/12)
E8 = MOD(+E7+INT(((F7-F8)/30)),12)
F8 = MOD(F7,30)

HTH,
Gary Brown


"Tanya" wrote in message
...
I posted this question yesterday, (and yes, I realized my calculation error
after I posted. But, thanks for the corrections) but I may not have been
clear about what information I am trying to calculate. My spreadsheet is
formatted as follows:


A1 B1 D1 E1
F1
From To Years Months Days
10/16/198512/31/1989 4 2 16
1/1/1990 10/11/1990 0 9 11
2/19/1991 9/30/1991 0 7 12
Total 4 18 39

To get the years, months and days I am using the following formulas:
=DATEDIF(A4,B4,"Y"), =DATEDIF(A4,B4,"YM"), =DATEDIF(A4,B4 +1,"MD")

I now need the formula to convert the 4yrs, 18mos, 39days into 5yrs, 7mos,
30 days or 5yrs, 8mos preferrably. (Did I get it right this time?) :)
Thanks for your help!





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
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
Excel not recognizing Dates properly. Dan Excel Discussion (Misc queries) 1 March 23rd 05 07:19 PM
How sort dates just by day/month and NOT year if all 3 given in ce smags Excel Worksheet Functions 1 January 25th 05 03:45 AM
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


All times are GMT +1. The time now is 11:20 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"