+ Reply to Thread
Results 1 to 2 of 2

Need to count number of occurrences between a set of times

  1. #1
    Registered User
    Join Date
    12-24-2018
    Location
    Phoenix AZ
    MS-Off Ver
    2013
    Posts
    1

    Need to count number of occurrences between a set of times

    I have a sheet that has a few thousand rows of data. I am trying to find the percentage of occurrences by shift are logged between 04:30 and 06:10 or between 17:30 and 18:10.

    I figured out how to count the occurrences between the 4 shifts in column B and show it in column D. My problem counting column A for the above time restrictions is the date being in the same cell. Any way to count these so I can find the percentage?


    shifts.PNG

  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: Need to count number of occurrences between a set of times

    I'd use a helper column with an IF() test to determine whether the shifts are between the times you specify and if so return the value of column B

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then just sum the helper column and express it as a % of column B
    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.

+ 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. Count number of occurrences
    By kris18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2015, 05:33 AM
  2. Count Occurrences of time stamp bewteen two times from DateTime Column
    By headric in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2014, 09:08 AM
  3. [SOLVED] Count number of occurrences but if there are consecutive matches count them as one
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2013, 08:26 PM
  4. Count the number of occurrences between In and Out times.
    By allwrighty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2013, 05:18 PM
  5. Count number of occurrences in a day
    By quinnbri in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2013, 05:49 PM
  6. [SOLVED] Count occurrences and sum values with times spanning over midnight.
    By SorZer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2012, 04:12 AM
  7. [SOLVED] Count number of occurrences for a number of ranges from a find loop
    By ANDREWA in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-23-2012, 07:53 PM

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