+ Reply to Thread
Results 1 to 5 of 5

Matching Similar Text Strings

  1. #1
    Registered User
    Join Date
    10-25-2018
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    12

    Matching Similar Text Strings

    Hello,

    I want a tool that identifies any matches/similarities from one list of names, to another list of names. This will be helpful to quickly compare raw data to what we have on file and recognize any duplicates/similarities.

    Problem:
    In a perfect world, the raw data (names) I receive comes spelled correctly and in a standard format: First Name + Last Name. This isn’t the case.

    As you will see in my attached example, I will have two lists I want to compare: Correct Spelling and Raw Data. I want to ensure that any names under Raw Data will be highlighted/bolded to signify that we already have it on file.

    This example shows that I don’t receive perfect raw data, in more ways than one. The data I receive sometimes has spelling mistakes and mixed formats, along with commas and hyphens.

    I purposefully made only one record correct and identifiable (Sasha Vi) in the long list of ‘#NA’s. As for the other names, they are only partially similar, but I’m not sure how to make their similarities/differences quantifiable.

    Solution Preference:
    I prefer a solution where there’s a ‘percentage of accuracy/match’ next to the name under Raw Data. This percentage would then later be conditionally formatted by colour.

    Research:
    1. I found an add-in for excel: ‘Fuzzy Match/Lookup’. I’m not sure I want to rely on this add-in. If this is the only solution to my problem, then I’ll look into it some more.
    2. I am familiar with VBA, so if that’s the solution, I would be happy to receive any coding ideas.




    I hope there’s an easy fix. Or better yet, some work-arounds that I haven’t considered.

    Thanks in advance for the help!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Matching Similar Text Strings

    I am not sure if this helps you but I've prepared the attached Workbook ...

    ------------------------------

    Edit: I have removed the attached file, because it doesn't answer your question.

    .
    Last edited by Haluk; 02-17-2019 at 03:55 PM.

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Matching Similar Text Strings

    This has come up a few times before on this forum.

    I have no personal experience but the Fuzzy Match/Lookup that you have come across has apparently been used successfully by some experience folks here - see for example the following:
    https://www.excelforum.com/excel-for...o-columns.html

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Matching Similar Text Strings

    I use fuzzyvlookup from @ GeoffW283's suggestion and add other functions, hope this helps

    The VBA code is from https://www.mrexcel.com/forum/excel-...planation.html

    So final formula is

    =FuzzyVLookup(LEFT(C4,LOOKUP(2^15,FIND(" "," "&C4,ROW(INDIRECT("1:"&LEN(C4)))))-1),$A$4:$A$10,1,,1)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-25-2018
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    12

    Re: Matching Similar Text Strings

    Just looking at this at a glance and I think you've solved my problem =)

    Much thanks, Azumi!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Compare similar text strings, line up two records and bring back a cell value
    By JoeExcelStruggler in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2019, 12:15 AM
  2. Compare similar text strings, line up two records and bring back a cell value
    By JoeExcelStruggler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2019, 05:42 AM
  3. [SOLVED] Mark similar but not identical text strings
    By n_ant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2014, 06:00 PM
  4. Comparing two lists, of similar but different text strings
    By FierceEffect in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2012, 10:41 AM
  5. Match Similar (But Not Exact) Text Strings
    By jamesjhhill in forum Excel General
    Replies: 1
    Last Post: 11-12-2012, 12:50 PM
  6. Matching similar but not exact text strings
    By Ampi Severe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2012, 10:21 AM
  7. Replies: 1
    Last Post: 10-18-2010, 06:32 PM

Tags for this Thread

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