+ Reply to Thread
Results 1 to 6 of 6

Adding Mulitple Date Dif with Years, Months, and Days

  1. #1
    Registered User
    Join Date
    03-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    24

    Adding Mulitple Date Dif with Years, Months, and Days

    Hi

    I found a solution to add mutiple date dif, and I wanted to amend the formula to include days, and having difficulty in understanding the formula after having a bash myself and looking for help.

    I have attached the excel file that I found and greatly appreciate any assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Adding Mulitple Date Dif with Years, Months, and Days

    Are you standarizing all months to be 30 days?

  3. #3
    Registered User
    Join Date
    03-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: Adding Mulitple Date Dif with Years, Months, and Days

    Hi,

    Good question though not sure, I was hoping to sum all the dates to give me total, it would be good be accurate but would easier making the months 30 days?

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Adding Mulitple Date Dif with Years, Months, and Days

    Pl give some Examples.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Adding Mulitple Date Dif with Years, Months, and Days

    E9
    Please Login or Register  to view this content.
    =SUMPRODUCT(MID(SUBSTITUTE("0"&$D$9:$D9&"00 Year 00 Month 00 Day",","," "),SEARCH("year",$D$9:$D9&"00 Year 00 Month 00 Day")-2,3)+0)+INT((SUMPRODUCT(MID(SUBSTITUTE("0"&$D$9:$D9&"00 Year 00 Month 00 Day",","," "),SEARCH("month",$D$9:$D9&"00 Year 00 Month 00 Day")-2,3)+0)+INT(SUMPRODUCT(MID(SUBSTITUTE("0"&$D$9:$D9&"00 Year 00 Month 00 Day",","," "),SEARCH("Day",$D$9:$D9&"00 Year 00 Month 00 Day")-2,3)+0)/30))/12)&" Year(s) "&MOD(SUMPRODUCT(MID(SUBSTITUTE("0"&$D$9:$D9&"00 Year 00 Month 00 Day",","," "),SEARCH("month",$D$9:$D9&"00 Year 00 Month 00 Day")-2,3)+0)+INT(SUMPRODUCT(MID(SUBSTITUTE("0"&$D$9:$D9&"00 Year 00 Month 00 Day",","," "),SEARCH("Day",$D$9:$D9&"00 Year 00 Month 00 Day")-2,3)+0)/30),12)&" Month(s) "&MOD(SUMPRODUCT(MID(SUBSTITUTE("0"&$D$9:$D9&"00 Year 00 Month 00 Day",","," "),SEARCH("Day",$D$9:$D9&"00 Year 00 Month 00 Day")-2,3)+0),30)&" Day(s)"
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Registered User
    Join Date
    03-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: Adding Mulitple Date Dif with Years, Months, and Days

    Hi Siva,

    Many thanks for the reply, works a treat, don't really undertand it but I presume its looks at months as 30 days?

    I will also mark it as solved.

    Appreciate the assitance.

    Man chun

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding Series of Years, Months, & Days
    By jmaitri in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-10-2019, 03:41 AM
  2. Replies: 3
    Last Post: 09-05-2014, 08:07 PM
  3. days, months and years between todays date and a series of dates
    By jonathanpalmer in forum Excel General
    Replies: 4
    Last Post: 09-22-2010, 03:04 AM
  4. Replies: 1
    Last Post: 06-29-2006, 09:30 AM
  5. Replies: 3
    Last Post: 06-28-2006, 05:40 PM
  6. [SOLVED] Start Date minus (Years + Months + Days) = ?
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2006, 01:10 PM
  7. [SOLVED] Excel Adding years or months to a date
    By Joan in forum Excel General
    Replies: 2
    Last Post: 04-25-2005, 04:06 PM

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