Finding duplicates & typos

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,532
Office Version
  1. 365
Platform
  1. Windows
With help I got here some time ago, I was able to build a table that shows how often a string from a master list occurs in a reference list.

R/CCDEFGH
4MasterTallyReference# ErrorsTypeFormula in D
5jane2jane sally polly0D5: =COUNTIF($E:$E,"*" & C5 & "*")
6Joe3joe sam sally0D6: =COUNTIF($E:$E,"*" & C6 & "*")
7sally3joe sam joe1DuplicateD7: =COUNTIF($E:$E,"*" & C7 & "*")
8sam6sam poly1InvalidD8: =COUNTIF($E:$E,"*" & C8 & "*")
9polly2sam peet sam2BothD9: =COUNTIF($E:$E,"*" & C9 & "*")
10pete0sally polly0D10: =COUNTIF($E:$E,"*" & C10 & "*")
11sam0
12jane joe sam0

<tbody>
</tbody>

Now I need a way to identify errors in the reference list. E7 contains a duplicate name, E8 contains a name that is not in the master list, and E9 contains both errors.

Can someone help me with a formula that I can put in F5:F12 that will return some indication of these errors, such as a count of the number of errors?

Note that in real life, the reference list may be much longer.

Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Maybe...

F5 copied down
=LEN(TRIM(E5))-LEN(SUBSTITUTE(E5," ",""))+1-SUMPRODUCT(--ISNUMBER(SEARCH(C$5:C$10,E5)))

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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