+ Reply to Thread
Results 1 to 3 of 3

COUNTIF for times????

  1. #1
    Registered User
    Join Date
    05-08-2012
    Location
    Sacramento, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Cool COUNTIF for times????

    Okay,

    I've never done this before I admit....

    I need to see the volume based on time of day. I have multiple times in a column, i.e 9:23, 12:18, 20:21, 11:58, etc.

    It would be cool to track how many were between (for example)
    9:00 AM and 9:30 AM (or 10:00 AM)
    15:00 to 16:00 (i.e. 3 PM to 4 PM)

    Any help would be greatly appreciated!

    Thanks in advance!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: COUNTIF for times????

    With Col_A containing your time values
    Try this:
    D1:D7 contains these time values:
    09:00 AM
    09:30 AM
    10:00 AM
    10:30 AM
    11:00 AM
    11:30 AM
    12:00 PM
    (extend that list as far as you need)

    And...This regular formula begins the list of time counts that are greater than or equal to D1 but less than D2
    D1: =COUNTIFS($A$1:$A$200,">="&D1,$A$1:$A$200,"<"&D2)

    Copy that formula down for the successive counts.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    05-08-2012
    Location
    Sacramento, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: COUNTIF for times????

    Maybe!

    I do have this formula:

    =COUNTIF(B:B,">0:00")-COUNTIF(B:B,">=1:00")

    HOWEVER, it doesn't count every single time; for instance, this formula counted 125 times, when I counted there are 129 times in this range.

+ 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