+ Reply to Thread
Results 1 to 2 of 2

Comparing two lists and finding 'similar' values

  1. #1
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    473

    Comparing two lists and finding 'similar' values

    Hi all, I've been wanting something like this for a while and thought I would start working on it but it seems like a bit of a big task to me so thought I would ask for your input.

    I won't bother going into boring detail about why I need this but..

    If we have 2 columns - column 1 contains a list of peoples names and column 2 also contains a list of peoples names but with a lot of bad spellings.

    So column 1 would have 'John Smith' and column 2 would have 'Jhon Smith'.

    I could do with some kind of code that could compare both lists and identify those in column 2 that have almost identical entries in column 1.

    I was thinking about maybe scanning each character in each cell and giving them a value based on what character and also what position the character is in.

    Would anyone have any better ideas for this?

    Thanks
    John

  2. #2
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251

    Re: Comparing two lists and finding 'similar' values

    It seems to me you are looking for Levenshtein distance.

    Fuzzy logic

    Levenshtein distance

+ 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