+ Reply to Thread
Results 1 to 4 of 4

Counting events occurring between specific time windows and on certain days

  1. #1
    Registered User
    Join Date
    08-25-2014
    Location
    Baltimore, MD
    MS-Off Ver
    2010
    Posts
    10

    Counting events occurring between specific time windows and on certain days

    Hello. I'm in over my head again. So, gurus, I again beg for help.

    I have a list of date/time data entries. From those, I'm trying to create a function/formula that counts which occured on a Monday and between which 30-min increment. So how many logins were on Monday from 8-8:30 am and so on. Workbook is attached.

    A
    4/1/16 10:01
    4/1/16 10:02

    B (Mondays)
    08:00
    08:30
    Attached Files Attached Files
    Last edited by Gyrene4341; 02-19-2018 at 10:10 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Counting events occurring between specific time windows and on certain days

    Something like this:

    B1 =TEXT(DAY(A1),"dddd")
    E2 ==SUMPRODUCT(($B$1:$B$2827=$D$2)*(MOD($A$1:$A$2827, 1)>=$D3)*(MOD($A$1:$A$2827, 1)<=$D4))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-25-2014
    Location
    Baltimore, MD
    MS-Off Ver
    2010
    Posts
    10

    Re: Counting events occurring between specific time windows and on certain days

    That works! (I was secretly hoping to not have to modify anything like adding that extra column so my replacement who was born tragically without a brain could just add the new entries and the function would keep up) Thank you!

  4. #4
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Counting events occurring between specific time windows and on certain days

    Hi, to all!

    [D3] : =SUMPRODUCT(--(WEEKDAY(A$1:A$2827)=2),--(MOD(A$1:A$2827,1)>=C3),--(MOD(A$1:A$2827,1)<C3+"0:30"))
    And drag it down.

    P.D. The interval must be "closed" at first and "open" at the end (the last hour of interval is including in next range).
    P.D. Matrix form of SUMPRODUCT is faster than multiplication of ranges into SUMPRODUCT.

    Check file. Blessings!
    Attached Files Attached Files
    Last edited by johnmpl; 02-19-2018 at 07:02 PM.

+ 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. Counting specific events within a date range
    By Rickard82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2016, 11:50 AM
  2. Plot of events occurring during the day
    By Immiyh in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-10-2016, 12:50 PM
  3. [SOLVED] Macro to select specific events from Time-Sheet
    By m_carter in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-01-2016, 03:00 PM
  4. Replies: 5
    Last Post: 08-17-2015, 05:38 AM
  5. [SOLVED] Counting specific days between dates
    By floxxie in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-14-2014, 08:44 AM
  6. Counting number of events after a specific hour
    By jugdish in forum Excel General
    Replies: 3
    Last Post: 11-03-2010, 12:59 PM
  7. Counting in specific events in a date range
    By chamaile0n in forum Excel General
    Replies: 5
    Last Post: 08-18-2008, 04:00 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