Match and count

fatnhappy

Board Regular
Joined
Nov 8, 2003
Messages
132
I have a set of data in C:4:C99. I have another set of data in C104:R104. I want to count the number of times the data in C104:R104 matches the data in C4:C99 and display that number

The data in C4:C99 can be duplicates
The data in C104:R104 is unique and is not duplicated in this range.

I am sure this is a simple sumproduct, I am just not sure of the syntax.

Thanks
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
There may well be a more "correct" way, but the below will work...

=SUMPRODUCT((C4:C99=C104:R104)*1)

Hope I understood what you meant.

Dave
 
Upvote 0
OK, neither of those is what I am looking for. Perhaps a visual will work better. I would like to have a formula that compares a4:a10 with a13:f13 and return the number of times A4:A10 matches a13:F13. The answer I am looking for here is 4.
Book1
ABCDEF
1
2
3
4red
5fucia
6green
7beige
8brown
9yellow
10red
11
12
13blueredyellowpurplegreenwhite
Sheet1
 
Upvote 0
Thanks aladin - as always you are right. Sumproducts confuse me sometimes, thanks for making it work.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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