=COUNTIF(D4:D29,">0")

R

RagDyeR

Have you tried this:

=COUNTIF(D4:D29,"<0")

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

I need this formula to also count negative numbers
 
M

Mike

I need them to by 1 EXample

1 2 4 5 10 11 15 16 -19 24 0 -13 0 2 0 -9 0 0 0
0 0 -3 0 1 0 -46 1 - 0 0 -11 0 -120 0 0 0 5 -1 1 0
Total 4 2 3 3 4 3 4
 
B

Bob Phillips

=SUM(D4:D29)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
J

Jerry W. Lewis

=COUNTIF(D4:D29,"<>0") will count anything not zero (empty cells, text,
booleans, errors, etc). It also behaves strangely on sheets where the last
row ever used is <29.

To count only positive or negative numbers, use
=COUNTIF(D4:D29,">0")+COUNTIF(D4:D29,"<0")

Jerry
 
D

Dave Peterson

Good point.

Another alternative...
=COUNT(D4:D29)-COUNTIF(D4:D29,0)

Which will distiguish between text 0 ('0) and the number 0.
 
M

Mike

TY Very Much That Worked Great

Dave Peterson said:
Good point.

Another alternative...
=COUNT(D4:D29)-COUNTIF(D4:D29,0)

Which will distiguish between text 0 ('0) and the number 0.
 
Top