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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
=SUM(D4:D29)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
=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
 
Good point.

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

Which will distiguish between text 0 ('0) and the number 0.
 
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.
 

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


Back
Top