Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Marlsnz
 
Posts: n/a
Default Query counting cells in a row that exactly match cells in another

Can I use a formula to count how many cells in a particular row is exactly
equal to the corresponding cell in another row?
In the example below, I want to compare Rows 3 & 4 against Row 1.
the answer for Row 3 would be 3 (the 1st, 3rd and 5th numbers) and the
answer for Row 4 would be 2 (the 2nd and 5th numbers)

eg
Row 1 = 3, 4, 5, 3 ,4, 3
Row 3 = 3, 5, 5, 4, 4, 6
Row 4 = 4, 4, 4, 5, 4, 5

If there is a formula, can it then be modified to show if the cell in Row 3
or 4 is greater (or less than) the corresponding cell in Row 1?

Hope this makes sense.

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Query counting cells in a row that exactly match cells in another

Hi

Try
=SUMPRODUCT(--($A$1:$F$1=A2:F2))
and copy down

--
Regards

Roger Govier


"Marlsnz" wrote in message
...
Can I use a formula to count how many cells in a particular row is
exactly
equal to the corresponding cell in another row?
In the example below, I want to compare Rows 3 & 4 against Row 1.
the answer for Row 3 would be 3 (the 1st, 3rd and 5th numbers) and the
answer for Row 4 would be 2 (the 2nd and 5th numbers)

eg
Row 1 = 3, 4, 5, 3 ,4, 3
Row 3 = 3, 5, 5, 4, 4, 6
Row 4 = 4, 4, 4, 5, 4, 5

If there is a formula, can it then be modified to show if the cell in
Row 3
or 4 is greater (or less than) the corresponding cell in Row 1?

Hope this makes sense.

Cheers



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
Errors in COUNT, COUNTA, COUNTIF when counting merged cells Outback Excel Worksheet Functions 1 February 7th 06 04:29 PM
Counting Occurrence of Text within Text in Cells in Range. Jeremy N. Excel Worksheet Functions 1 September 8th 05 05:16 AM
Counting Unique Cells When Spread Sheet is Filtered carl Excel Worksheet Functions 1 June 3rd 05 07:20 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM


All times are GMT +1. The time now is 04:55 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"