+ Reply to Thread
Results 1 to 4 of 4

Finding Duplicate Characters

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Durham, NC
    MS-Off Ver
    Excel 2011 MAC
    Posts
    2

    Finding Duplicate Characters

    I have a list of company names I am trying to find duplicates. However, some names may be entered differently. Example: ABC Sports --- ABC Core Sports.

    Is there a way to find duplicates based on the first 5 or 6 text characters of a cell...not the entire cell?

    Thanks< MIKE

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Finding Duplicate Characters

    =countif(A:A,left(A1,5)&"*")
    would count how many names in the list start with the same 5 characters.

    Although in the case you mention above, it still wouldn't match as only the first 4 characters would match.

  3. #3
    Registered User
    Join Date
    07-28-2011
    Location
    Durham, NC
    MS-Off Ver
    Excel 2011 MAC
    Posts
    2

    Re: Finding Duplicate Characters

    How do I identify which cells are the duplicates? And is there any way for it to search the "first 5 characters" instead of 5 characters all together?

  4. #4
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Finding Duplicate Characters

    Quote Originally Posted by mballard5574 View Post
    How do I identify which cells are the duplicates?
    If you put this formula into your top row and drag it down, anything greater than 1 would be a duplicate.

    That said, that doesn't guarantee it's a duplicate. Maybe a better solution would be:

    =IF(COUNTIF(A:A,LEFT(A1,5)&"*")>1,INDEX(A:A,MATCH(LEFT(A1,5)&"*",A:A,0),1))

    This would find the closest match and show it. You could then filter the match column to check if they were indeed matches.

    Quote Originally Posted by mballard5574 View Post
    And is there any way for it to search the "first 5 characters" instead of 5 characters all together?
    I'm not really sure what you mean by this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1