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?

[TABLE="width: 570"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]First Column[/TD]
[TD]Second Column[/TD]
[TD]Match Column[/TD]
[/TR]
[TR]
[TD]VV GJ-900-0003492[/TD]
[TD]BLAH[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]BLAH GJ-900-0003493 BLAH[/TD]
[TD]BLAH[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]MP-002-00214[/TD]
[TD]MANUAL PAYMENTS[/TD]
[TD]NO MATCH[/TD]
[/TR]
[TR]
[TD]MP-900-00101[/TD]
[TD]MANUAL PAYMENTS[/TD]
[TD]NO MATCH[/TD]
[/TR]
[TR]
[TD]VGJ-900-00083[/TD]
[TD]VOID GJ-900-0003492[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]VGJ-900-00085[/TD]
[TD]VOID GJ-900-0003493[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]GJ-003-0001374[/TD]
[TD]write off year-old GPN[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]GJ-003-0001517[/TD]
[TD]write off year-old GPN[/TD]
[TD]NO MATCH[/TD]
[/TR]
[TR]
[TD]VGJ-003-00089[/TD]
[TD]VOID GJ-003-0001374[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]GJ-003-0001374[/TD]
[TD]write off year-old GPN[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]GJ-003-0001517[/TD]
[TD]write off year-old GPN[/TD]
[TD]NO MATCH[/TD]
[/TR]
[TR]
[TD]VGJ-003-00089[/TD]
[TD]VOID GJ-003-0001374[/TD]
[TD]MATCH[/TD]
[/TR]
</tbody>[/TABLE]


Thank you for any help on this!!
 

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.
=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,224,836
Messages
6,181,251
Members
453,027
Latest member
Lost_in_spreadsheets

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