Count match

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Using Excel2000

Hi,

I want tocheck row 10 data and find match, comparing with Row 6 & 7
Examplebelow shows 10 matches found in the row 10 what formula could be to apply tofind match in the cell R10?


Book1
ABCDEFGHIJKLMNOPQRS
1
2
3
4
5
62111XX1XX1112X
7X2122X11222111
8
9
10211X211X2X222X10
11
12
Sheet1


Thank youin advance



Regards,
Kishan
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

This is one way, there may be better ways:


Book1
CDEFGHIJKLMNOPQR
62111XX1XX1112X
7X2122X11222111
8
9
10211X211X2X222X10
Sheet112
Cell Formulas
RangeFormula
R10=SUMPRODUCT(--(C6:P6=C10:P10))+SUMPRODUCT(--(C7:P7=C10:P10))-SUMPRODUCT((C6:P6=C10:P10)*(C7:P7=C10:P10))
 
Upvote 0
Hi,

This is one way, there may be better ways:

C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
6
2
1
1
1
X
X
1
X
X
1
1
1
2
X
7
X
2
1
2
2
X
1
1
2
2
2
1
1
1
8
9
10
2
1
1
X
2
1
1
X
2
X
2
2
2
X
10

<tbody>
</tbody>
Sheet112


Worksheet Formulas
Cell
Formula
R10
=SUMPRODUCT(--(C6:P6=C10:P10))+SUMPRODUCT(--(C7:P7=C10:P10))-SUMPRODUCT((C6:P6=C10:P10)*(C7:P7=C10:P10))

<tbody>
</tbody>

<tbody>
</tbody>
jtakw, "as you said there may be better ways". But your formula works fine

Thank you for your help

Regards,
Kishan
 
Upvote 0
Hi,

One more question does it is possible to count those match in row 10 which match in the both row 6 & 7 as the below example shows 5 matches.


Book1
ABCDEFGHIJKLMNOPQRS
1
2
3
4
5
621112X1XX1122X
7X2122X1122221X
8
9
10211X211X2X222X5
11
12
Sheet2


Thank you in advance

Regards,
Kishan
 
Last edited:
Upvote 0
jtakw, "as you said there may be better ways". But your formula works fine

Thank you for your help

Regards,
Kishan

But then, may be Not.

Until someone comes up with a better solution, this is the Best solution. :cool: ;)
 
Last edited:
Upvote 0
For your latest question:


Book1
CDEFGHIJKLMNOPQR
621112X1XX1122X
7X2122X1122221X
8
9
10211X211X2X222X5
Sheet113
Cell Formulas
RangeFormula
R10=SUMPRODUCT((C6:P6=C10:P10)*(C7:P7=C10:P10))
 
Upvote 0
For your latest question:

CDEFGHIJKLMNOPQR
621112X1XX1122X
7X2122X1122221X
8
9
10211X211X2X222X5

<tbody>
</tbody>
Sheet113

Worksheet Formulas
CellFormula
R10=SUMPRODUCT((C6:P6=C10:P10)*(C7:P7=C10:P10))

<tbody>
</tbody>

<tbody>
</tbody>
jtakw, your formula worked spot on.

Thank you for your Help

Have a nice weekend

Regards,
Kishan
:)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top