+ Reply to Thread
Results 1 to 7 of 7

Finding overlapping date periods for specific variables

  1. #1
    Registered User
    Join Date
    11-13-2014
    Location
    North Carolina, United States
    MS-Off Ver
    2011
    Posts
    4

    Finding overlapping date periods for specific variables

    Long time viewer, first time poster. I am normally pretty good at searching the wealth of knowledge previously posted to this site but in this instance scanning the 5500 or so search results for sumproduct, overlap, and dates did not yield an answer. Here is my issue. I have a list of teams with start and end dates for events. each time can have unlimited events. I am trying to find a way to determine if there are any overlapping events for each team.

    I believe that the sumproduct function is the way to go but nothing I have seen works in my situation. All just compare all the dates with no consideration for a variable. I'm pretty sure that I need some other expression (if, sumif, etc.) to combine with sumproduct to get the right results. Example below:

    Please Login or Register  to view this content.
    Thank you in advance for any and all assistance on this problem.

    Sean
    Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Finding overlapping date periods for specific variables

    Hi,

    The formula at cell E2:

    Please Login or Register  to view this content.
    Regards
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    11-13-2014
    Location
    North Carolina, United States
    MS-Off Ver
    2011
    Posts
    4

    Re: Finding overlapping date periods for specific variables

    Karedog, thank you for your reply. I entered the code that you provide and it does programatically find the overlaps based on the sample data that I provided you. However, the code still does not take in to consideration for the team.

    By way of example, using my original sample data, when I copy the formula down, I am told that Row 7 overlaps with Row 4. I am ok with this overlap because it is for two different teams. I only want to know about the overlaps that occur for the same team.

    I will do some disection of the code you provided to see if the LARGE function is the culprit.

    Thanks, Sean

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-13-2014
    Location
    North Carolina, United States
    MS-Off Ver
    2011
    Posts
    4

    Re: Finding overlapping date periods for specific variables

    Ok, I have found a partial solution to my issue. I am now able to accurately identify teams with overlapping date ranges with the following code:

    Please Login or Register  to view this content.
    This outputs TRUE for each row were the team is equal and the start and stop dates overlap. The last part of this issue is finding a way to idenfity which rows have the overlapping date conflict. Ultimately I am looking for a way to have the following show up in the overlap column:

    Please Login or Register  to view this content.
    Thanks,
    Sean
    Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Finding overlapping date periods for specific variables

    To match another one condition (in this case match the team), just add another checking condition :

    Please Login or Register  to view this content.
    Regards

  6. #6
    Registered User
    Join Date
    11-13-2014
    Location
    North Carolina, United States
    MS-Off Ver
    2011
    Posts
    4

    Finding overlapping date periods for specific variables

    Karedog, adding that last checking condition did the trick. Thanks for you help. PROBLEM SOLVED!!!

  7. #7
    Registered User
    Join Date
    06-11-2019
    Location
    Wilmington, NC
    MS-Off Ver
    10
    Posts
    5
    Thank you, this has been a helpful post
    Last edited by Anetia1621; 06-14-2019 at 11:09 AM. Reason: Trying to Delete

+ 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. Finding overlapping mm:ss within a date
    By sdaniel75 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2014, 07:00 PM
  2. Replies: 3
    Last Post: 05-16-2014, 01:23 AM
  3. [SOLVED] Finding Overlapping Date Entries with matching IDs
    By Zabaran in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2013, 06:30 AM
  4. Replies: 0
    Last Post: 07-30-2012, 04:51 PM
  5. [SOLVED] Finding Overlapping Data
    By comparini3000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2006, 03:45 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