+ Reply to Thread
Results 1 to 5 of 5

number of overlapping minutes between two sets of times

  1. #1
    Registered User
    Join Date
    11-03-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    9

    number of overlapping minutes between two sets of times

    I'm looking to find a method of finding the amount of overlapping minutes between 2 sets of times. I thought that Max/Min might help but while it will give a number it doesn't appear to be giving the amount of time that is actually overlapping. Meaning 1p-2p and 12:30-1:30p would yield 30mins.

    Start Time End Time Start Time End Time Overlap
    6:50:00 AM 3:20:00 PM 9:55:00 AM 7:32:00 PM ?

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: number of overlapping minutes between two sets of times

    Assuming your example is in cells A1,B1,C1,D1 the following formula would give you the results you seek:

    = TEXT(MIN(B1,D1) - MAX(A1,C1),"h.mm.ss")

    OPTION (2) changing hours to minutes and showing the result in minutes use this

    = MINUTE(MIN(B2,D2) - MAX(A2,C2)) +( HOUR(MIN(B2,D2) - MAX(A2,C2)) * 60)
    Attached Files Attached Files
    Last edited by nimrod; 11-03-2014 at 10:29 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: number of overlapping minutes between two sets of times

    This second attached file shows results in two formats h.m.s and also only in minutes
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-03-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    9

    Re: number of overlapping minutes between two sets of times

    Yes! Thank you!!!

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: number of overlapping minutes between two sets of times

    Thanks , if you are happy with my solution please Add to my reputation.

+ 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. overlapping times
    By missicoussi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-26-2014, 07:16 AM
  2. subtract 2 24 hour times as string and return the number of minutes
    By jacol in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2012, 01:00 AM
  3. Macro that sets maximum number of times a workbook is opened
    By Mark1011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2012, 08:41 AM
  4. Macro to total overlapping dates/times in minutes
    By symaxf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-24-2010, 11:36 AM
  5. Replies: 7
    Last Post: 08-15-2007, 08:33 AM

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