COUNTIF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
=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
 
i am new to XL but i find the formula =COUNTIF(range,ISBLANK(range))
more intuitive and readable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top