Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting entities with the same values

Hi solo_razor,

You can use the 'Correl' function. If two rows are the same then it
returns '1'. Something like this:

Dim RCorr,NumOfSameRows as integer

RCorr = Application.WorksheetFunction.Correl(Rows(i), Rows(p))

If RCorr = 1 Then
NumOfSameRows = NumOfSameRows + 1
End If



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default counting entities with the same values

when I had text in the rows it returned #DIV/0

Just for information.
--
Regards,
Tom Ogilvy

"zantor" wrote in message
...
Hi solo_razor,

You can use the 'Correl' function. If two rows are the same then it
returns '1'. Something like this:

Dim RCorr,NumOfSameRows as integer

RCorr = Application.WorksheetFunction.Correl(Rows(i), Rows(p))

If RCorr = 1 Then
NumOfSameRows = NumOfSameRows + 1
End If



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Subordinate entities in Organizational Chart sl128960l5 Charts and Charting in Excel 1 May 20th 10 02:11 PM
Counting values in one cell based on values in another S2 Excel Discussion (Misc queries) 7 April 18th 09 02:46 AM
need chart that displays overlap/duplication between two entities Bsacco Charts and Charting in Excel 1 March 5th 07 12:38 PM
counting rows with same values for multiple values Jon Viehe New Users to Excel 4 September 1st 05 03:49 PM
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 07:20 PM.

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"