+ Reply to Thread
Results 1 to 19 of 19

Adding Series of Years, Months, & Days

Hybrid View

  1. #1
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    To calculate difference between two dates try :
    For the nr of years
    =DATEDIF(A1;A2;"y")
    For the number of months
    DATEDIF(A1;A2;"ym")
    For the nr of days :
    DATEDIF(A1;A2;"md")
    Where A1 is the begin date and A2 the end date ( change the semi-coloms to commas if necessary)
    This is the method found here :http://www.cpearson.com/excel/DateTimeWS.htm
    Last edited by arthurbr; 02-01-2008 at 10:42 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,723
    Trying to add text strings like "2 years, 3 months, 4 days" is unnecessarily complicated. Try using your base dates to calculate the total period as per my suggestion above.

  3. #3
    Registered User
    Join Date
    02-01-2008
    Posts
    6
    Thank you for your help fellas!

    I just had surgery, so will give your suggestions a go once I am feeling better and my mind is more clear!

    Again, thank you and my apologies for not answering a bit quicker--I'll try all your suggestions in a couple of days and let you know I how I do.

    With best wishes,
    Jay

  4. #4
    Registered User
    Join Date
    02-01-2008
    Posts
    6
    Daddylonglegs,

    I just gave your solution a run and it worked like a champ! Many thanks for your help.

    Likewise, thanks to everyone else who also lent a hand (formula)!

    Jay

  5. #5
    Registered User
    Join Date
    12-17-2011
    Location
    Baguio City, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Adding Series of Years, Months, & Days

    Quote Originally Posted by daddylonglegs View Post
    Trying to add text strings like "2 years, 3 months, 4 days" is unnecessarily complicated. Try using your base dates to calculate the total period as per my suggestion above.
    Hello!
    I know this post has been made years ago but i still hope for a reply. I tried your formula on a data which has two date ranges and it worked. Now i do not know how to do it with a data that has three or more date ranges. I tried adding another SUM command for each of the year, months and days (ex.=DATEDIF(Sum(A2,A4),SUM(B2,B4),SUM(C2,C4),"y")&"years",...) but Excel returns an error message about the formula being too long or there are too many entries.
    Hope you could help me.
    Thanks,
    Eds

  6. #6
    Registered User
    Join Date
    05-02-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    3

    Re: Adding Series of Years, Months, & Days

    Quote Originally Posted by daddylonglegs View Post
    Trying to add text strings like "2 years, 3 months, 4 days" is unnecessarily complicated. Try using your base dates to calculate the total period as per my suggestion above.
    It shows an error. The error is 2n-1 with n no. of values. The obtained value was 2n-1 less than actual value.
    If I am wrong, can you please upload an excel sheet with an example.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,883

    Re: Adding Series of Years, Months, & Days

    This thread is 7 years old: please start your own thread.

  8. #8
    Registered User
    Join Date
    09-10-2019
    Location
    Pune
    MS-Off Ver
    2007
    Posts
    2

    Re: Adding Series of Years, Months, & Days

    Please help me how to sum
    1years,9months
    0years,9months
    0years,11months

    total

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1