How to count number of cells with only ZEROS!

Ultimate Selector

Board Regular
Joined
Dec 15, 2013
Messages
153
I am stumped a bit on this one. I want to count the number of cells that have a ZERO (0) in them.
I do NOT want to count any blank cells, just the cells that contain a 0 in them within a range.

What is the formula for this?

Thanks in advance for any help on this!

Regards,
U.S. :cool:
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
If the range you want to check is D1 To D10
Try this:
=COUNTIF(D1:D10,0)
 
Upvote 0
What do you get when you try it? I've tried it, and so has MAIT, and it works for us. How is your data laid out?
 
Upvote 0
If your looking for a Vba solution.
Try this:
Looking in Range("A1:A10") For 0
Code:
Sub Count_Me()
'Modified  10/6/2018  7:09:44 PM  EDT
ans = Application.WorksheetFunction.CountIf(Range("A1:A10"), 0)
MsgBox ans
End Sub
 
Upvote 0
Sorry, I had to run out for min. My data is laid out left to right with formatting.


=COUNTIF(k28:t28,0)

<colgroup><col width="39"></colgroup><tbody>
</tbody>

=COUNTIF(k28:t28,0)

<colgroup><col width="39"></colgroup><tbody>
</tbody>
 
Upvote 0
This is my data layout ...

321 21 2 311%12345 102%3%
#186#1
#298#2
#3210158710#3
#4155855#4
#51693#5
#615531735#6
#7514648793116424#7
#8291100209110010#8
#9629554729#9
#105741652986213224#10

<tbody>
</tbody>



* I want to count the number of cells that are blank. They do have zeros however but I blanked them out in my formatting.
The COUNTBLANK statement does not work either.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,633
Messages
6,125,922
Members
449,274
Latest member
mrcsbenson

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