+ Reply to Thread
Results 1 to 10 of 10

Overlapping Date ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    01-01-2015
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    5

    Re: Overlapping Date ranges

    Thanks Richard & zbor for the quick responses I've tweaked my sheet so to represent a clearer explanation of what im trying to achieve..

    The sheet represents a payment schedule, & in this case 31 days in the month

    If I use examples ii & v it gives me a total of 32 days

    In example ii I'm trying to achieve 4 days instead of 5 & in iv 25 instead of 26

    The tweaking is in ii & v as explained above

    I'v also manually input in col G what im expecting

    Hope this ia little clearer

    pvd

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Overlapping Date ranges

    Hi,

    This clearly revolves around whether dates are counted as inclusive or not. But can I check your logic

    i) counts the whole month of August - hence start and end dates are inclusive i.e. 31 days
    ii) this seems to ignore the requirement to count the 'last' day, i.e. 5th and you want an answer of 4
    iii) again this is a complete month as i) above hence 31 days
    iv) from 5 Aug to 30 Aug is 26 inclusive days yet you want to ignore one day and show 25
    v) from 5 Aug to 31 Aug is 27 inclusive days

    What is your rule for ignoring an inclusive day in ii) and iv) but not else where. If it's where the start or end date is within the month then maybe in F3 copied down try

    Formula: copy to clipboard
    =IF(OR(D3>$B$3,E3<$A$3),0,MIN(E3,$B$3)-MAX(D3+1,$A$3)+IF(D3>$A$3,1,0)+IF(E3>$B$3,1,0))


    but it doesn't seem entirely consistent
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] Calculating # of Overlapping days with several date ranges and conditions
    By ZafferAhmed in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-30-2021, 05:44 AM
  2. Calculating # of Overlapping days with several date ranges.
    By CarlSVM in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-06-2014, 07:09 AM
  3. Summing # of overlapping days with lots of date ranges
    By tvnsf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 01:48 PM
  4. Charting Amounts Between Overlapping Date Ranges
    By thomasutley in forum Excel General
    Replies: 0
    Last Post: 09-27-2011, 12:43 PM
  5. how to count # rows having overlapping date ranges
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2011, 01:54 PM
  6. Counting Continuous Days within overlapping Date Ranges
    By mgaworecki in forum Excel General
    Replies: 3
    Last Post: 09-07-2011, 08:33 AM
  7. preventing overlapping date ranges
    By xlfan in forum Excel General
    Replies: 2
    Last Post: 03-01-2011, 10:03 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