Exclude "0" from COUNT function

e.cichlid

New Member
Joined
Jun 27, 2008
Messages
33
Hi All,

I want to COUNT the occurance that any number appears in a cell (I do not want to SUM them). How can I exclude "0" from being counted? I'd rather not leave the cell blank.

Thank you.
 
Welcome to the board...

It does work..
Perhaps a better question is "Why doesn't it do what I want it to do?"

To answer that, we need to know what you wanted it to do..

What result does it give?
What result did you expect it to give, and why?


Most likely it results in a higher number than you expect because it count's Blanks and Text Strings as NOT 0..
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
If this formula returns 0
=COUNTIF(G132:G6503, "<>0")
It means that ALL the values in G132:G6503 are equal to 0.

Also, you may have calculation set to Manual, or a Circular reference.
If you put that formula within the range G132:G6503, then that's a circular reference.
 
Upvote 0
If this formula returns 0
=COUNTIF(G132:G6503, "<>0")
It means that ALL the values in G132:G6503 are equal to 0.

Also, you may have calculation set to Manual, or a Circular reference.
If you put that formula within the range G132:G6503, then that's a circular reference.


Hi
=COUNTIFS(G132:G6503,"<>",G132:G6503,"<>0",G132:G6503,"<>0*")
It will count only those values which is greater and lest than 0
Thanks
 
Upvote 0

Forum statistics

Threads
1,223,385
Messages
6,171,786
Members
452,424
Latest member
Sheila003

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top