+ Reply to Thread
Results 1 to 4 of 4

Countif between time ranges

  1. #1
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Countif between time ranges

    How would I count the number of times a range was above/below a certain number within certain time ranges?

    So I have my time ranges and "data" and I want to know how many times for each hour (12, 1 pm, 2 pm etc.) the "data" or time in minutes was say greater than 30? See attachment for clarity...
    Attached Files Attached Files
    Last edited by dreicer_Jarr; 10-14-2008 at 07:09 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I can't tell what you're trying to do from your example. Your workbook has links to a different workbook.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Countif between time/dates

    I want to know how many instances are over or under a specified criteria (e.g. >=30) by hour of the day. So if I had 30 instances between 2 and 3, I would want to know how many were over or equal to 30.

    The formula needs to look at three collumns. The first two are dates/times and will tell it whether the time is between what hours. The second is the "instances" or data that is being compared to the criteria. See this spreadsheet....the stuff under row 13 is just my setup...
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    In B14 and copy down and across,

    =SUMPRODUCT( ($B$2:$B$7 >= $A14 + B$13) * ($B$2:$B$7 < $A14 + B$13 + "1:00") * ($C$2:$C$7 >= 30) )

    The times in S13:Y13 need to be changed to not be on 1/1/1900, unless they are intended to be on the following day.
    Last edited by shg; 10-14-2008 at 10:54 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. COUNTIF in non contiguous cell ranges
    By barrycarney in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2008, 02:38 PM
  2. total time
    By telcotech in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2008, 10:44 PM
  3. Time Ranges
    By jmag in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2008, 03:24 PM
  4. countif on nonconnected ranges
    By village_idiot in forum Excel General
    Replies: 17
    Last Post: 05-15-2007, 06:51 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