+ Reply to Thread
Results 1 to 6 of 6

Count a number of completed events happened in a day

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Houston
    MS-Off Ver
    2013
    Posts
    2

    Question Count a number of completed events happened in a day

    I have a bunch of data in the following format:
    Time From Time To
    05/08/17 19:25 05/08/17 21:39
    05/08/17 22:30 05/09/17 00:30
    05/09/17 01:04 05/09/17 02:57
    05/09/17 06:27 05/09/17 06:32
    05/09/17 06:32 05/09/17 08:28
    05/09/17 11:51 05/09/17 13:48
    05/09/17 17:00 05/09/17 18:54
    05/09/17 23:18 05/10/17 00:00

    How can i count a number of completed events in a day? (midnight to midnight)
    So, if the event started in 1 day and finished on another- don't count it.
    Thank you for your help

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count a number of completed events happened in a day

    Probably by adding a helper column that determines whether the Time To date is the same as the Time From date and then using a Pivot Table to analyse the data and use a SLicer to filter the completed records.

    If you want further help then upload the workbook.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Count a number of completed events happened in a day

    Try

    =COUNT(IF(ROUNDDOWN(A2:A9,0)=ROUNDDOWN(B2:B9,0),A2:A9)) Ctrl Shift Enter

  4. #4
    Registered User
    Join Date
    09-25-2014
    Location
    Houston
    MS-Off Ver
    2013
    Posts
    2

    Re: Count a number of completed events happened in a day

    Thank you
    But I need a count per day
    so more like:
    Date Count
    05/08/2017 1
    05/09/2017 2
    05/10/2017 1

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Count a number of completed events happened in a day

    Quote Originally Posted by tg0809 View Post
    Thank you
    But I need a count per day
    so more like:
    Date Count
    05/08/2017 1
    05/09/2017 2
    05/10/2017 1
    With a unique list of dates in column D, you can write this formula in column E (starting in E2):

    =COUNTIFS(A:A,">="&D2,B:B,"<="&D2+0.99999)

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count a number of completed events happened in a day

    ...as suggested in post #2 please upload the workbook. It's important to see your data in context.

+ 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. How to count the number of events in Excel
    By Happyout in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-11-2016, 12:31 PM
  2. Replies: 5
    Last Post: 03-18-2016, 01:39 PM
  3. [SOLVED] vLookup to Count Number of Completed Category Items for Report
    By rstarr1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2015, 09:52 AM
  4. Count number of events per month in a range
    By cpots13 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-27-2013, 04:03 PM
  5. [SOLVED] count the number of events in an interval
    By invictus in forum Excel General
    Replies: 4
    Last Post: 06-11-2012, 06:17 PM
  6. [SOLVED] Count the number of projects completed within a 1 week period.
    By SWILLI99 in forum Excel General
    Replies: 6
    Last Post: 04-07-2012, 06:42 PM
  7. [SOLVED] Count the number of times 1 happened in a row
    By Stephen in forum Excel General
    Replies: 8
    Last Post: 04-04-2005, 09:06 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