Count cells that have a number >0

G

Guest

00:00 Don't count
00:01 Count
00:10 Count
01:00 Count
12:01 Count

I want to count a column that has 1 to 60 minutes and 1 to 12 hrs.

Any help would be appreciated.

Fly Boy 5
 
J

JE McGimpsey

One way:

1-60 minutes:

=COUNTIF(A:A,">0") - COUNTIF(A:A,">" & 1/24)

or, alternatively:

=SUMPRODUCT(--(A1:A100>0),--(A1:A100<=1/24))

1-12 hours:

=COUNTIF(A:A,">" & 1/24) - COUNTIF(A:A,">" & 12/24)

or, alternatively:

=SUMPRODUCT(--(A1:A100>1/24),--(A1:A100<=0.5))
 

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

Similar Threads

help in formula countif OR sumproduct 4
Multiple Count IF 's 1
Time Stored as Text 3
Group Time 3
counting based on two dates 2
Grouping Time in Pivots. 2
COUNTIF doesn't work 12
Counting Blanks with Conditions 4

Top