Counting Cells (including Empty Ones)

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

Guest

Is there a way i can count teh number of cells between A5:A89 including the emply cells? I would like it to stay up-to-date automatically without my having to go back and do all the math myself. So if i add a few rows in between i will automatically count the new rows. It does that if there are numbers there but not if there are NO numbers. Thanks!
 
Maybe the ROWS function.

--
Jim Rech
Excel MVP
| Is there a way i can count teh number of cells between A5:A89 including
the emply cells? I would like it to stay up-to-date automatically without
my having to go back and do all the math myself. So if i add a few rows in
between i will automatically count the new rows. It does that if there are
numbers there but not if there are NO numbers. Thanks!
 
Jacob, the right way (?), the wrong way (?), and DDM's way:

=COUNTA(A5:OFFSET(A89,0,0,-1))+COUNTBLANK(A5:OFFSET(A89,0,0,-1))

--
DDM
"DDM's Microsoft Office Tips and Tricks"
www.ddmcomputing.com


Jacob said:
Is there a way i can count teh number of cells between A5:A89 including
the emply cells? I would like it to stay up-to-date automatically without
my having to go back and do all the math myself. So if i add a few rows in
between i will automatically count the new rows. It does that if there are
numbers there but not if there are NO numbers. Thanks!
 
Just a warning.

=countA() and =countblank() aren't always mutually exclusive.

if you have a formulas that evalute to ="", then you'll see problem.
 
Let's go back to Jim Rech's original suggestion and do it this way then:
=ROW(A90)-ROW(A5)
 

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