Results 1 to 10 of 10

Overlapping Date ranges

Threaded View

pvd12 Overlapping Date ranges 01-03-2016, 08:08 AM
zbor Re: Overlapping Date ranges 01-03-2016, 08:15 AM
Richard Buttrey Re: Overlapping Date ranges 01-03-2016, 08:37 AM
pvd12 Re: Overlapping Date ranges 01-04-2016, 04:31 AM
Richard Buttrey Re: Overlapping Date ranges 01-04-2016, 06:29 AM
pvd12 Re: Overlapping Date ranges 01-04-2016, 09:12 AM
Richard Buttrey Re: Overlapping Date ranges 01-04-2016, 10:26 AM
pvd12 Re: Overlapping Date ranges 01-07-2016, 02:59 AM
FlameRetired Re: Overlapping Date ranges 01-05-2016, 10:12 PM
pvd12 Re: Overlapping Date ranges 01-07-2016, 03:01 AM
  1. #1
    Registered User
    Join Date
    01-01-2015
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    5

    Overlapping Date ranges

    Forgive me but I have hijacked someone else question from another forum

    It defines what I'd like to do

    It works in the main exception pt ii & v

    The attached Excel sheet should be self-explanatory I hope!

    I have a fixed date range, "F" (A3:B3) and a number of variable date ranges ("V") in columns D and E.

    I want column F to return the number of days between D and E that fall within range F All 6 possible examples are listed-

    (i) V starts and ends before F = 0 days
    (ii) V starts before range F and ends within F = some of F (start F - end V)
    (iii) V starts before before F and ends after F = all of F
    (iv) V starts within F and ends within F = some of F (end V - Start V)
    (v) V starts within F and ends after F = some of F (start V - end F +1)
    (vi) V starts after F and ends after F = 0 days


    I've tried 3 different scenarios, all came up with the same answer

    .=MAX(0,MIN(B$3,E3)-MAX(A$3,D3)+1)
    .=MAX(MIN($B$3,E3)-MAX(D3,$A$3)+1,0)
    .=IF(OR($B$3<D3,$A$3>E3),0,(MIN($B$3,E3)-MAX($A$3,D3)+1))

    (I think the latter is possibly my best bet but I'm unable to tweak it the correct way)

    All help greatly appreciated
    Attached Files Attached Files

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