How to find partial duplicates
Tutor 5 (112 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Partial duplicates occur when cells contain similar information but are not identical. Excel provides multiple methods to identify these cases.
Method 1: Using the COUNTIF Function
The COUNTIF function counts the number of times a value appears in a range. This method helps identify partial matches with wildcards.
Select a blank column next to your data.
Enter the formula:
=COUNTIF(A:A, "*"&B1&"*")
A:Ais the column where you want to check duplicates.B1is the cell containing the value you want to compare.*acts as a wildcard to allow partial matches.
Press Enter and drag the formula down.
Any number greater than 0 indicates a partial duplicate.
Method 2: Using Conditional Formatting
Conditional formatting highlights cells that contain partial duplicates.
Select the range of cells you want to check.
Go to Home → Conditional Formatting → New Rule.
Choose Use a formula to determine which cells to format.
Enter the formula:
=COUNTIF($A$1:$A$100,"*"&A1&"*")>1
$A$1:$A$100is the range to check.A1is the first cell in the selected range.
Click Format, choose a highlight color, then click OK.
Partial duplicates in the range will be highlighted automatically.
Method 3: Using the SEARCH or FIND Functions
These functions locate specific text within a cell. Combine with ISNUMBER to flag matches.
In a blank column, enter:
=IF(ISNUMBER(SEARCH("part-of-text", A1)), "Partial Duplicate", "")
"part-of-text"is the substring to search for.A1is the cell being checked.
Press Enter and copy the formula down.
Cells containing the substring will display "Partial Duplicate".
Method 4: Using Power Query for Advanced Partial Matching
Power Query provides more control for large datasets.
Select your table and go to Data → Get & Transform Data → From Table/Range.
In Power Query, select the column to check.
Go to Add Column → Custom Column.
Use the formula:
Text.Contains([Column1], "substring")
Returns
TRUEfor partial matches.
Load the data back to Excel, filtering
TRUEvalues to see partial duplicates.
Tips to Improve Accuracy
Standardize text by using the
TRIMandUPPERfunctions to remove spaces and match cases.=UPPER(TRIM(A1))
Remove punctuation with
SUBSTITUTEif data contains special characters.For large datasets, Power Query is more efficient than formulas.
Partial duplicates are best handled by combining wildcards, text functions, and conditional formatting. This ensures that variations in text do not hide duplicate information.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Why is drop down list not showing in excel
Answers · 0
Why is the drop down list not showing all options
Answers · 1
Why can't I delete drop down list excel
Answers · 1
How to create an Excel drop-down list from a lookup table
Answers · 1