Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jo Jo is offline
external usenet poster
 
Posts: 113
Default what is the best function for counting rows?

I just want a simple formula to automatically return a result for number of
rows in a sheet (minus the heading). I don't want to have to review the last
row every time it changes or might have changed.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default what is the best function for counting rows?

Assuming your table is in Sheet1, in col A across, headers in row1, data from
row2 down w/o any intervening blank cells

Then in Sheet2,
In A1, copied across: =COUNTA(Sheet1!A:A)-1
will return the required monitoring data row counts for cols A to xxx in
Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Jo" wrote:
I just want a simple formula to automatically return a result for number of
rows in a sheet (minus the heading). I don't want to have to review the last
row every time it changes or might have changed.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jo Jo is offline
external usenet poster
 
Posts: 113
Default what is the best function for counting rows?

Thank you Max - that's perfect. Just for interest's sake, does 'A' refer to
a whole worksheet?

"Max" wrote:

Assuming your table is in Sheet1, in col A across, headers in row1, data from
row2 down w/o any intervening blank cells

Then in Sheet2,
In A1, copied across: =COUNTA(Sheet1!A:A)-1
will return the required monitoring data row counts for cols A to xxx in
Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Jo" wrote:
I just want a simple formula to automatically return a result for number of
rows in a sheet (minus the heading). I don't want to have to review the last
row every time it changes or might have changed.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default what is the best function for counting rows?

And if there are, or can be, intervening blanks...

=MATCH(LOOKUP(2,1/(A1:A65535<""),A:A),A:A,0)

Rick

"Max" wrote in message
...
Assuming your table is in Sheet1, in col A across, headers in row1, data
from
row2 down w/o any intervening blank cells

Then in Sheet2,
In A1, copied across: =COUNTA(Sheet1!A:A)-1
will return the required monitoring data row counts for cols A to xxx in
Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Jo" wrote:
I just want a simple formula to automatically return a result for number
of
rows in a sheet (minus the heading). I don't want to have to review the
last
row every time it changes or might have changed.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jo Jo is offline
external usenet poster
 
Posts: 113
Default what is the best function for counting rows?

Thank you Rick. Once a formula gets complicated I lose interest!!

"Rick Rothstein (MVP - VB)" wrote:

And if there are, or can be, intervening blanks...

=MATCH(LOOKUP(2,1/(A1:A65535<""),A:A),A:A,0)

Rick

"Max" wrote in message
...
Assuming your table is in Sheet1, in col A across, headers in row1, data
from
row2 down w/o any intervening blank cells

Then in Sheet2,
In A1, copied across: =COUNTA(Sheet1!A:A)-1
will return the required monitoring data row counts for cols A to xxx in
Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Jo" wrote:
I just want a simple formula to automatically return a result for number
of
rows in a sheet (minus the heading). I don't want to have to review the
last
row every time it changes or might have changed.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default what is the best function for counting rows?

Thank you Max - that's perfect.
That's good

.. Just for interest's sake, does 'A' refer to a whole worksheet?

If you mean: Sheet1!A:A in the formula,
that term refers to the entire col A in Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads: 16,700, Files: 356, Subscribers: 53
xdemechanik
---


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default what is the best function for counting rows?

But if you can ever have intervening blank cells, then the non-complicated
formula won't work.

Rick


"Jo" wrote in message
...
Thank you Rick. Once a formula gets complicated I lose interest!!

"Rick Rothstein (MVP - VB)" wrote:

And if there are, or can be, intervening blanks...

=MATCH(LOOKUP(2,1/(A1:A65535<""),A:A),A:A,0)

Rick

"Max" wrote in message
...
Assuming your table is in Sheet1, in col A across, headers in row1,
data
from
row2 down w/o any intervening blank cells

Then in Sheet2,
In A1, copied across: =COUNTA(Sheet1!A:A)-1
will return the required monitoring data row counts for cols A to xxx
in
Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Jo" wrote:
I just want a simple formula to automatically return a result for
number
of
rows in a sheet (minus the heading). I don't want to have to review
the
last
row every time it changes or might have changed.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jo Jo is offline
external usenet poster
 
Posts: 113
Default what is the best function for counting rows?

Thanks - I'll remember that.

"Rick Rothstein (MVP - VB)" wrote:

But if you can ever have intervening blank cells, then the non-complicated
formula won't work.

Rick


"Jo" wrote in message
...
Thank you Rick. Once a formula gets complicated I lose interest!!

"Rick Rothstein (MVP - VB)" wrote:

And if there are, or can be, intervening blanks...

=MATCH(LOOKUP(2,1/(A1:A65535<""),A:A),A:A,0)

Rick

"Max" wrote in message
...
Assuming your table is in Sheet1, in col A across, headers in row1,
data
from
row2 down w/o any intervening blank cells

Then in Sheet2,
In A1, copied across: =COUNTA(Sheet1!A:A)-1
will return the required monitoring data row counts for cols A to xxx
in
Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Jo" wrote:
I just want a simple formula to automatically return a result for
number
of
rows in a sheet (minus the heading). I don't want to have to review
the
last
row every time it changes or might have changed.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default what is the best function for counting rows?

Once a formula gets complicated I lose interest!!

You're missing out on all the fun of Excel!

I'm just the opposite. I don't get "interested" unless the formula is
complicated!


--
Biff
Microsoft Excel MVP


"Jo" wrote in message
...
Thank you Rick. Once a formula gets complicated I lose interest!!

"Rick Rothstein (MVP - VB)" wrote:

And if there are, or can be, intervening blanks...

=MATCH(LOOKUP(2,1/(A1:A65535<""),A:A),A:A,0)

Rick

"Max" wrote in message
...
Assuming your table is in Sheet1, in col A across, headers in row1,
data
from
row2 down w/o any intervening blank cells

Then in Sheet2,
In A1, copied across: =COUNTA(Sheet1!A:A)-1
will return the required monitoring data row counts for cols A to xxx
in
Sheet1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Jo" wrote:
I just want a simple formula to automatically return a result for
number
of
rows in a sheet (minus the heading). I don't want to have to review
the
last
row every time it changes or might have changed.





  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default what is the best function for counting rows?

"T. Valko" wrote:
.. I don't get "interested" unless the formula is complicated!


Biff,
There's an OP requesting for a helper col-free solution in this thread:
http://tinyurl.com/649r8g
It might interest you
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000, Files:358, Subscribers:55
xdemechanik
---




  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default what is the best function for counting rows?

See my reply in that thread.

--
Biff
Microsoft Excel MVP


"Max" wrote in message
...
"T. Valko" wrote:
.. I don't get "interested" unless the formula is complicated!


Biff,
There's an OP requesting for a helper col-free solution in this thread:
http://tinyurl.com/649r8g
It might interest you
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000, Files:358, Subscribers:55
xdemechanik
---



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting rows??? Lockedhart Excel Discussion (Misc queries) 6 July 30th 08 06:26 PM
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Excel 2003 function for counting rows with two conditions. NikkiTheNovice Excel Worksheet Functions 3 June 25th 07 12:47 AM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM


All times are GMT +1. The time now is 01:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"