Match partial duplicates in two columns

Ebippity

New Member
Joined
Mar 1, 2019
Messages
6
I'm trying to find partial dupes comparing data in two columns and limiting the matches to a specified number of digits.

Ridiculously Simple Example: If column 1 has "1234" and column 2 has "3456" (and these are formatted as text, not numbers), it would match those because they both "34" in them. I would be able to specify that at least 2 consecutive digits have to match.

Here is a sample of the data I'm working with. How do I do this?

First ColumnSecond ColumnMatch Column
VV GJ-900-0003492BLAHMATCH
BLAH GJ-900-0003493 BLAHBLAHMATCH
MP-002-00214MANUAL PAYMENTSNO MATCH
MP-900-00101MANUAL PAYMENTSNO MATCH
VGJ-900-00083VOID GJ-900-0003492MATCH
VGJ-900-00085VOID GJ-900-0003493MATCH
GJ-003-0001374write off year-old GPNMATCH
GJ-003-0001517write off year-old GPNNO MATCH
VGJ-003-00089VOID GJ-003-0001374MATCH
GJ-003-0001374write off year-old GPNMATCH
GJ-003-0001517write off year-old GPNNO MATCH
VGJ-003-00089VOID GJ-003-0001374MATCH

<colgroup><col><col><col></colgroup><tbody>
</tbody>


Thank you for any help on this!!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Oh except I made a mistake. The third row from the bottom of the second column is NOT a match.
 
Upvote 0
=IF(COUNTIF($A$2:$A$100,"*"&B2&"*")+SUMPRODUCt(COUNTIF(B2,"*"&$A$2:$A$100&"*")),"MATCH","")
 
Upvote 0
=IF(COUNTIF($A$2:$A$100,"*"&B2&"*")+SUMPRODUCt(COUNTIF(B2,"*"&$A$2:$A$100&"*")),"MATCH","")

Phuoc, sorry for taking so long to respond. It's been crazy over here! Finally got a chance to test this out and I'm so excited that it's working. Thank you!!!
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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