+ Reply to Thread
Results 1 to 5 of 5

Overlapping Time Based on Conditions

Hybrid View

  1. #1
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Overlapping Time Based on Conditions

    Welcome to the forum! See if the attachment does the trick. I reformatted your sheet to display seconds in columns B and C, then I added a helper column labeled "Team" in Column F with a table off to the side to help match each entry to the associated team. The real work occurs in column G, which uses the following formula in G2, filled down through G357:

    =IF(COUNTIFS($C$2:$C2,">"&$B2,$B$2:$B2,"<"&$C2,$F$2:$F2,$F2)>1,MIN(SUMPRODUCT(--($C$1:$C1>$B2),--($B$1:$B1<$C2),--($F$1:$F1=$F2),($C$1:$C1)),$C2)-$B2,"")

    This should show the overlap time in the row of the second of the two overlapping entries. I didn't check every entry, but it seemed to work on the ones I looked at. Take a look, hopefully it helps...


    EDIT: Better solutions below
    Attached Files Attached Files
    Last edited by CAntosh; 01-19-2017 at 06:11 PM. Reason: shame.

+ 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. [SOLVED] Sum time spent based on conditions
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-02-2015, 05:43 AM
  3. Replies: 1
    Last Post: 11-14-2013, 08:45 AM
  4. Count based on date/time conditions
    By lrmorales87 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-20-2012, 01:08 AM
  5. Replies: 1
    Last Post: 10-30-2012, 07:12 PM
  6. [SOLVED] Formula based upon time data with conditions
    By halfpint123 in forum Excel General
    Replies: 4
    Last Post: 09-28-2012, 12:41 PM
  7. Counting Overlapping Time & Non-Overlapping Time
    By I_need_help1 in forum Excel General
    Replies: 4
    Last Post: 02-08-2011, 02:36 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