+ Reply to Thread
Results 1 to 4 of 4

Figure out the number of occurences in a time range.

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    cincinnati,oh
    MS-Off Ver
    Excel 2003
    Posts
    6

    Figure out the number of occurences in a time range.

    I need a formula that will count the number of times a time (exp. 5:30am) occurs in a row of data like a1:a10. But i need it to be 5:00am through 6:00am etc. So for exp. if a1=5:13am, a2=5:47am, a3=5:01am, a4=6:01am the number of occurrences should be 3. Please Help!

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Figure out the number of occurences in a time range.

    Assuming that your source data within A1:A10 are real times - recognized by Excel
    something like this should do it:
    =SUMPRODUCT((A1:A10>= --"5:00 AM")*(A1:A10< --"6:00 AM"))
    Note that I have used "<" for the upper limit: < --"6:00 AM"
    so as not to overlap with possibly your next hour's count
    --------
    Success? Celebrate it, hit the little star at the bottom left of my response

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    cincinnati,oh
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Figure out the number of occurences in a time range.

    Thank You! This really helped.

  4. #4
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Figure out the number of occurences in a time range.

    Welcome, good to hear. Thanks for taking a moment to feedback here. cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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