+ Reply to Thread
Results 1 to 4 of 4

Counting Time Overlaps

  1. #1
    Registered User
    Join Date
    08-23-2021
    Location
    England
    MS-Off Ver
    Version 2107
    Posts
    1

    Counting Time Overlaps

    Hi,

    Bit of an odd request that I have not been able to solve.

    Using a simplified example as an easier way of explaining the problem:

    I have a visitor log that has the times in which someone enters and exits. I would like to find the highest number of visitors in the building throughout the day.

    I am not looking for a timeframe that there are the most visitors, but rather the highest number of visitors in the building.

    Can this be done in anyway?

    Many Thanks
    Attached Files Attached Files
    Last edited by callumt683; 08-23-2021 at 08:16 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,180

    Re: Counting Time Overlaps

    There are instructions at the top of the page explaining how to attach your sample workbook.

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Counting Time Overlaps

    assuming a version prior to O365 and your sample file, you might try something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    this isn't particularly efficient though - as it's performing 1440 COUNTIFS, one for each minute of the day -- you could streamline a little, by isolating MIN & MAX, e.g.:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Counting Time Overlaps

    Pl see file.
    This works

    =AGGREGATE(14,6,COUNTIFS($B$2:$B$7,"<="&$C$2:$C$7,$C$2:$C$7,">="&$B$2:$B$7),1)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add 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. Time Overlaps and Identifying Gaps
    By Angiebaby888 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2019, 12:46 PM
  2. Replies: 11
    Last Post: 10-24-2016, 08:12 PM
  3. Checking for time overlaps against given points in the day
    By alex440000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2016, 01:15 PM
  4. Help in checking for overlaps in time across sheets
    By TMartin79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2013, 03:42 PM
  5. Tracking Date and Time overlaps
    By kukarooza in forum Excel General
    Replies: 11
    Last Post: 10-11-2013, 09:09 AM
  6. Calculating Time Overlaps with Multiple Ranges
    By LAMFCU in forum Excel General
    Replies: 3
    Last Post: 07-03-2013, 04:40 AM
  7. Series of help: including if time overlaps
    By freeurmind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2013, 06:32 AM

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