COUNTIF

A

alm09

I need to count how many cells in a rather larger range are populated (i.e
not blank). I am using the formula: COUNTIF(range, <> "") but get an error.

How would I write this formula?
 
B

Biff

=COUNTA(A1:A1000)

That'll count all cells that contain anything including cells with formula
blanks "".

To exclude cells with formula blanks:

=SUMPRODUCT(--(A1:A1000<>""))

Biff
 
S

steve_k

i am new to XL but i find the formula =COUNTIF(range,ISBLANK(range))
more intuitive and readable.
 
Top