COUNTIF

J

Jackie

I need to count the number of durations
1. Less than 1 hour
2. Between 1 & 2 hours
etc.
HELP!
 
P

Peo Sjoblom

For less than 1 hour

=COUNTIF(A1:A10,"<"&TIME(1,,))

between 1 and 2

=COUNTIF(A1:A10,">="&TIME(1,,))-COUNTIF(A1:A10,">"&TIME(2,,))

you might want to change the latter to

=COUNTIF(A1:A10,">="&TIME(1,,))-COUNTIF(A1:A10,">="&TIME(2,,))

if you don't want to include 02:00

format result as general or else you might get a time format
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top