Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2006

Tip: Looking for answers? Try searching our database.

Count cells in range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 30 Sep 2006 17:34 GMT
I need a function that simply counts the number of cells in a range.  Not
based on a condtion, simply the number of cells in a range.

Obviously if I'm doing this once I can simply put in a constant.  (It's easy
to see that the range A1:A50 has 50 cells.)  But I need a formula that will
automatically adjust if the size of the range changes, so that if I insert a
row after A17, the formula will return 51.

As far as I can tell, COUNT, COUNTA, and COUNTIF don't do this.  I suppose I
could use COUNTIF(A1:A50,"<>999"), where 999 is a value that I know will not
appear in the range.

But is there a more straightforward formula?

Thanks.
Dave Peterson - 30 Sep 2006 17:41 GMT
If it's a single area, how about:
=rows(myrng)*columns(myrng)

> I need a function that simply counts the number of cells in a range.  Not
> based on a condtion, simply the number of cells in a range.
[quoted text clipped - 11 lines]
>
> Thanks.

Signature

Dave Peterson

Eric - 30 Sep 2006 18:04 GMT
Thanks.  That solves the problem.  

I'm an occasional user of Excel, and I just don't know all the functions.  I
knew there had to be some simple solution!

> If it's a single area, how about:
> =rows(myrng)*columns(myrng)
[quoted text clipped - 14 lines]
> >
> > Thanks.
Don Guillett - 30 Sep 2006 17:51 GMT
=CELL("row",B11)-CELL("row",B2)

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

>I need a function that simply counts the number of cells in a range.  Not
> based on a condtion, simply the number of cells in a range.
[quoted text clipped - 16 lines]
>
> Thanks.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.