RagDyer said:
Fill A5:A20, and then select and clear or delete, and you then get 16, which
is correct if you consider "=" means equal to null.
Not sure what you mean by "null". If you consider the empty string
(=""), ', Left("A",0) and such as "string blanks", and truly empty cells
as "true blanks", then =COUNTIF(rng,"=") returns (subject to the
exception for new worksheets) the number of true blanks, and
COUNTIF(rng,"") returns the number of true blanks and string blanks
combined.
=COUNTIF(A5:A20,"*")
in a new WB or in used and/or reused cells works *all* the time.
Works for what ?
Returns non-blank, non-numeric (text) cells.
I'm also not sure what you mean by "non-blank" in the above statement.
COUNTIF(rng,"*") returns the number of cells whose content is of the
String type, including string blanks.
Alan Beban