How Many matched and how many non matched - Between two column

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
543
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi,
We have data in Sheet1!A2:A and Sheet2!C2:C. In Sheet1!A2:A, there are approximately 150 entries, and in Sheet2!C2:C, there are approximately 24 entries.
We need to determine how many entries match and how many do not match between these two ranges.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Maybe something like this.
The formula in F2 is an array formula and will need to be enter with CTRL-SHIFT-ENTER in Excel 2010 and 2007.
Change ranges to match your data.

Book1
ABCDEF
1List1List2Count in BothIn Both List
2Test1Test24Test2
3Test2Test4Test4
4Test4Test15Test16
5Test5Test16Test24
6Test6Test17 
7Test7Test24 
8Test8 
9Test10
10Test11
11Test12
12Test13
13Test14
14Test16
15Test22
16Test23
17Test24
18Test25
19Test26
20
Sheet1
Cell Formulas
RangeFormula
D2D2=SUM(COUNTIF($A$2:$A$19,$B$2:$B$7))
F2F2=IF(ROWS($F$2:F2)>$D$2,"",INDEX($A$2:$A$19,SMALL(IF(COUNTIF($B$2:$B$7,$A$2:$A$197),MATCH(ROW($A$2:$A$19),ROW($A$2:$A$19))),ROWS($F$2:F2))))
F3:F8F3=IF(ROWS($F$2:F3)>$D$2,"",INDEX($A$2:$A$19,SMALL(IF(COUNTIF($B$2:$B$7,$A$2:$A$197),MATCH(ROW($A$2:$A$19),ROW($A$2:$A$19))),ROWS($F$2:F3))))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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