Time Range Count

nrichel

New Member
Joined
Jul 29, 2009
Messages
35
Hi - I'm hoping I could get some help with a count I need to do.

In A I have a range of times that appear like this:
0:03:00
0:10:00
1:20:00
0:01:00

I would like to be able to count how many times in my 9,000 records does less than 3 mins appear
3 - 5 mins
5-7 mins
7-10 mins
10-20 and so on

Please help! I've been trying the COUNTIF and SUM functions, but no luck! Thanks!!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
If those are actual real times, then you can use sumproduct.
clarification though...

Should 5 minutes exactly be counted as 3-5 or 5-7?
 
Upvote 0
One way:

Code:
       ---A--- B ---C--- D ----------------------------E----------------------------
   1   0:07:23   0:03:00 4 D1: =COUNTIF($A$1:$A$20, "<" & C1)                       
   2   0:05:23   0:05:00 3 D2 and down: =COUNTIF($A$1:$A$20, "<" & C2) - SUM(D$1:D1)
   3   0:01:29   0:07:00 2                                                          
   4   0:06:18   0:10:00 2                                                          
   5   0:13:46   0:20:00 9                                                          
   6   0:04:58                                                                      
   7   0:18:16                                                                      
   8   0:14:54                                                                      
   9   0:01:02                                                                      
  10   0:10:53                                                                      
  11   0:16:00                                                                      
  12   0:03:01                                                                      
  13   0:02:38                                                                      
  14   0:08:58                                                                      
  15   0:12:59                                                                      
  16   0:10:04                                                                      
  17   0:14:07                                                                      
  18   0:00:07                                                                      
  19   0:04:58                                                                      
  20   0:10:10

EDIT: A little late to the party, I see ...
 
Upvote 0
3 to (less than) 5 appears in D2 in my example.
 
Upvote 0
Try

=SUMPRODUCT(--(MOD(A1:A10,1)<="0:03:00"+0),--(MOD(A1:A10,1)>"0:00:00"+0))
=SUMPRODUCT(--(MOD(A1:A10,1)<="0:05:00"+0),--(MOD(A1:A10,1)>"0:03:00"+0))
=SUMPRODUCT(--(MOD(A1:A10,1)<="0:07:00"+0),--(MOD(A1:A10,1)>"0:05:00"+0))
etc...
 
Upvote 0
Glad to help, thanks for the feedback..


just FYI
The MOD in there may be a bit overkill.
It's there in case your times are actually DATE and Time..

But if your times are actually just time only, then you can remove the mod part

=SUMPRODUCT(--(A1:A10<="0:03:00"+0),--(A1:A10>"0:00:00"+0))
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top