Count Question

G

Grant

I am trying to count the number of cells that are no equal to 0.
COUNTIF(L:L,"<>0") includes all the blank cells. I need to count cells
that are not blank and not equal to zero.

T.I.A.
Ed
 
S

SteveG

Ed,

If your values are always positive numbers then:

=COUNTIF(L1:L16,">0")

If there are also negatives then:

=COUNTIF(L1:L16,">0")+COUNTIF(L1:L16,"<0")

Cheers,

Stev
 
B

Bob Phillips

=SUMPRODUCT(--(L1:L1000<>0))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Top