A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need number of rows



 
 
Thread Tools Display Modes
  #1  
Old August 29th, 2005, 08:10 PM
alsameer
external usenet poster
 
Posts: n/a
Default Need number of rows


Is there any function which can return the number of rows present in the
specified sheet.

I remember I have seen one function for this befor somewhere. But not
able to recollect

thanks


--
alsameer
------------------------------------------------------------------------
alsameer's Profile: http://www.excelforum.com/member.php...o&userid=24041
View this thread: http://www.excelforum.com/showthread...hreadid=400171

  #2  
Old August 29th, 2005, 09:45 PM
Mike
external usenet poster
 
Posts: n/a
Default

There is ROWS and ROW functions.

"alsameer" wrote:


Is there any function which can return the number of rows present in the
specified sheet.

I remember I have seen one function for this befor somewhere. But not
able to recollect

thanks


--
alsameer
------------------------------------------------------------------------
alsameer's Profile: http://www.excelforum.com/member.php...o&userid=24041
View this thread: http://www.excelforum.com/showthread...hreadid=400171


  #3  
Old August 30th, 2005, 01:41 AM
Route2391
external usenet poster
 
Posts: n/a
Default


you can check you excel properties

I got a lot of my begginer help on this site... cool

www.MDOTutorials.com


--
Route2391
------------------------------------------------------------------------
Route2391's Profile: http://www.excelforum.com/member.php...o&userid=26774
View this thread: http://www.excelforum.com/showthread...hreadid=400171

  #4  
Old August 30th, 2005, 04:25 AM
David McRitchie
external usenet poster
 
Posts: n/a
Default

The question is somewhat ambiguous.
The number or rows in a spreadsheet is dependent on your version
of Excel. What are you looking for and how do you want to use it.

Ctrl+End will take you to the lastcell location which is the intersection
of the last used row an the last used column, but it is more like a high
water mark than a correct location. Some more insight into this can
be found at http://www.mvps.org/dmcritchie/excel/lastcell.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"alsameer" wrote in message
...

Is there any function which can return the number of rows present in the
specified sheet.

I remember I have seen one function for this befor somewhere. But not
able to recollect

thanks


--
alsameer
------------------------------------------------------------------------
alsameer's Profile: http://www.excelforum.com/member.php...o&userid=24041
View this thread: http://www.excelforum.com/showthread...hreadid=400171



  #5  
Old August 30th, 2005, 09:04 AM
alsameer
external usenet poster
 
Posts: n/a
Default


thanks David.
I got it. "ActiveSheet.UsedRange.Rows.Count"
ur links were really helpful.


--
alsameer
------------------------------------------------------------------------
alsameer's Profile: http://www.excelforum.com/member.php...o&userid=24041
View this thread: http://www.excelforum.com/showthread...hreadid=400171

  #6  
Old August 30th, 2005, 02:32 PM
David McRitchie
external usenet poster
 
Posts: n/a
Default

Just to make sure that you are working with what you think you
will be working with -- if you start with an empty sheet so that the
lastrow count will not be messed up and populate cells B34
you will get the following results (nothing is in the first two rows):

ActiveSheet.UsedRange.Rows.Count is 2
Cells.SpecialCells(xlLastCell).Row is 4
ActiveSheet.UsedRange.Address is $B$3:$D$4
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"alsameer" wrote in message
...

thanks David.
I got it. "ActiveSheet.UsedRange.Rows.Count"
ur [Your] links were really helpful.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Query to put PO number on Detail Rows Sue M. Running & Setting Up Queries 4 August 9th, 2005 02:23 PM
set number of rows equal in mutiple columns speary General Discussion 5 July 8th, 2005 12:27 AM
Insert rows Mr. G. Worksheet Functions 3 March 31st, 2005 03:49 AM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Maximum number of rows? Peter Soules Mailmerge 3 May 17th, 2004 05:17 PM


All times are GMT +1. The time now is 12:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.