+ Reply to Thread
Results 1 to 3 of 3

Adding multiple date ranges.

  1. #1
    Registered User
    Join Date
    03-25-2022
    Location
    India
    MS-Off Ver
    Office 2019
    Posts
    1

    Adding multiple date ranges.

    How to add multiple date ranges to find the total time period in number of years , months and days

    4/12/2015 to 6/2/2019 = 4 years,1 months,21 days
    9/8/2010 to 1/8/2012 = 1 years,4 months,0 days
    5/3/2007 to 3/4/2008 = 0 years,10 months,1 days
    3/5/2004 to 4/3/2006 = 1 years,10 months,1 days
    ----------------------------------------------------------------
    total = ??????

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,857

    Re: Adding multiple date ranges.

    crossposted: https://www.mrexcel.com/board/thread...anges.1200306/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Adding multiple date ranges.

    This works in my version of Excel. It may work in yours... it may require to be entered as an array formula... and it may not work at all!!

    I get 8 years, 0 months and 28 days for the dates used.

    If the formula in the file is enclosed within a pair of { }, it is an array formula.

    These are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see the curly brackets { } appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. [SOLVED] Adding Multiple Ranges to a VBA code
    By leo73pk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2020, 06:54 PM
  2. Adding Multiple ranges
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2019, 11:55 AM
  3. Adding multiple sheets based on defined ranges/criteria
    By ronaldev in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2015, 05:59 AM
  4. Adding values from different columns from specific date ranges
    By InterstateRentals in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2013, 08:07 PM
  5. [SOLVED] Adding in multiple ranges to a code
    By kjshep in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-24-2012, 06:58 AM
  6. adding dates based on date ranges
    By tbar05 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2012, 07:39 PM
  7. Adding values within date ranges
    By ktf71096 in forum Excel General
    Replies: 3
    Last Post: 02-27-2007, 12:07 PM

Tags for this Thread

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