+ Reply to Thread
Results 1 to 6 of 6

Search for best match with strings

  1. #1
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    169

    Search for best match with strings

    Hy everyone,

    I was looking for AddIns and macros to find a way to search and find the best match with strings. But no luck. Can you please help me?
    In column A are different strings. Take the first (A2) and search for the best result that matches in Column E. Then copy the best result after searching to B2
    and show the percentage of matching. Then take A3 and do the same again.
    I guess this is a big thing to do, but thanks for your help.

    Kind Regards
    Roman
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,802

    Re: Search for best match with strings

    The hard part here is defining what "best match" means. Do you have a definition in mind?

    One popular method is the Levenshtein algorithm. Here is a list of threads in this forum that address this type of matching.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    169

    Re: Search for best match with strings

    Hi 6StringJazzer (great name, I love Wes Montgomery),
    I have strings and numbers in different cells. I always had to search where these strings and numbers are in my original datas. It would be great if there is something, that checks the strings and numbers I get and if there are cells in which all of these informations are in my database. Of course not always 100%. I searched a lot of different ways to match this but I had no luck...
    Thanks
    Kind Regards

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Search for best match with strings

    FWIW this gives the results in your sample.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    169

    Re: Search for best match with strings

    Hi,
    thanks for the macro. I have tested it. It looks really good. I will test it with my original data. This will take some time but I let you know if it works.
    I saw some functions with Levenshtein
    '
    Please Login or Register  to view this content.
    How can I use this in my workbook? This looks also interessting.
    Kind Regards
    Roman

  6. #6
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    169

    Re: Search for best match with strings

    Please Login or Register  to view this content.

+ 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. Match different long strings with an array of short, summarizing strings
    By FKemps in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2015, 12:55 AM
  2. [SOLVED] search for parts of strings in another list of strings
    By marioroter in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-17-2013, 12:28 PM
  3. excel formula to search Multiple strings in several columns and return strings
    By krratna123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2013, 11:20 AM
  4. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  5. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  6. [SOLVED] loop to match if shorter strings appears in longer strings
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2012, 08:07 PM
  7. Trying to create a macro to match up search strings and variations in two columns....
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-02-2012, 05:43 PM

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