1

I am using countif quite often. However, I was wondering if I want to look for something not like:

=Countif(A:A;"1"), which counts all 1 but I want to count in which cell there is NO 1.

I appreciate your answer!

user2051347
  • 1,609
  • 4
  • 23
  • 34

1 Answers1

5

Just:

=COUNTIF(A:A;"<>1")

For excluding also empty cells use COUNTIFs (works in Excel 2007 and later):

=COUNTIFs(A:A;"<>1";A:A;"<>")

for Excel 2003:

=SUMPRODUCT((A:A<>"")*(A:A<>1))
Dmitry Pavliv
  • 35,333
  • 13
  • 79
  • 80