How to count cells that only contain the VALUE 0 and not the result of a formula?

Ana Ban picture Ana Ban · Apr 20, 2013 · Viewed 40.3k times · Source

For the following sheet:

    A
1   0
2   0 as formula result
3   0
4   0 as formula result
5   0 as formula result
6   blank
7   0

How do I count only the cells with 0 entered as VALUES and not the cells with 0 as their formula result, i.e.

COUNTIF(A1:A7,0 AS VALUE) = 3

I've tried the following:

COUNTIF(A1:A7,0) = 6

COUNTIF(A1:A7,"0") = 6

Answer

pata picture pata · Jan 28, 2015

COUNTIF(A1:A7;0) this worked for me