#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 113
Default COUNT-COUNT

, I have two worksheets open that are similar. What I need to know if there
is a formula which tells me if there is a difference in number of rows
between the first and second sheet.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default COUNT-COUNT


Hi Rahcel,

Please clarify you want the differnce in the number of filled rows in
sheet 1 and sheet 2 right?
By filled rows we here mean that there is data in any cell in these
rows. right?

Regards
Ankur
www.xlmacros.com

On Dec 19, 3:15 pm, Rachel wrote:
, I have two worksheets open that are similar. What I need to know if there
is a formula which tells me if there is a difference in number of rows
between the first and second sheet.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default COUNT-COUNT

Try this :


Sub countcount()
' gsnu 12_19_2006
Dim r1 As Range, r2 As Range
Dim w1 As Worksheet, w2 As Worksheet
Dim n1 As Long, n2 As Long
Set w1 = Worksheets(Application.InputBox("enter sheetname:", Type:=2))
Set w2 = Worksheets(Application.InputBox("enter other name:", Type:=2))
Set r1 = w1.UsedRange
Set r2 = w2.UsedRange
n1 = r1.Rows.Count + r1.Row
n2 = r2.Rows.Count + r2.Row
MsgBox ("Difference in number of row is: " & (n2 - n1))
End Sub

--
Gary's Student


"Rachel" wrote:

, I have two worksheets open that are similar. What I need to know if there
is a formula which tells me if there is a difference in number of rows
between the first and second sheet.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 113
Default COUNT-COUNT

Hi,

Yes you have it right, is it possible to provide me with a formula that I
can use?

Many thanks,
Rachel.


"ankur" wrote:


Hi Rahcel,

Please clarify you want the differnce in the number of filled rows in
sheet 1 and sheet 2 right?
By filled rows we here mean that there is data in any cell in these
rows. right?

Regards
Ankur
www.xlmacros.com

On Dec 19, 3:15 pm, Rachel wrote:
, I have two worksheets open that are similar. What I need to know if there
is a formula which tells me if there is a difference in number of rows
between the first and second sheet.



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
Need formula to count spinoffs jamescarvin Excel Worksheet Functions 1 July 14th 06 04:07 PM
Subtotals by count PineRest Excel Discussion (Misc queries) 1 May 10th 06 05:09 PM
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


All times are GMT +1. The time now is 02:27 AM.

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

About Us

"It's about Microsoft Excel"