+ Reply to Thread
Results 1 to 4 of 4

String similarity comparison

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    Finland
    MS-Off Ver
    Office 365
    Posts
    23

    Question String similarity comparison

    I found some other site this kind of function to compare two strings. It works great but I need to develop it a little bit. I need to compare string to strings in range and pick there most similar value. Now function goes like this =similarity(A1;B1) but I need it to work like =similarity(A1;B1:B500). I don't understand at all code below so I cannot do anything for it.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: String similarity comparison

    You may not be aware but Microsoft has a free Excel 'Fuzzy Lookup' Add In.

    This can compare two tables of strings and allows you to set the level of matching you will accept as a match.

    https://www.microsoft.com/en-gb/down....aspx?id=15011
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: String similarity comparison

    You need to add a loop and store the highest score.
    Also change a couple of variable types in order to handle range of cells.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    03-22-2010
    Location
    Finland
    MS-Off Ver
    Office 365
    Posts
    23

    Re: String similarity comparison

    Thanks for both of you.
    Last edited by Temporary-Failure; 03-08-2022 at 01:06 PM.

+ 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. [SOLVED] String Comparison Within IF Statement VBA
    By bruppert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2021, 04:18 PM
  2. [SOLVED] String Comparison
    By ihop72 in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 01-15-2021, 02:30 PM
  3. [SOLVED] String Comparison Not Working
    By js0873 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-02-2017, 10:11 AM
  4. String Comparison
    By tactical in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2011, 01:15 PM
  5. String comparison
    By HurricaneDan in forum Excel General
    Replies: 4
    Last Post: 11-08-2006, 02:05 PM
  6. comparison string VBA excell
    By stats in forum Excel General
    Replies: 5
    Last Post: 03-16-2006, 06:15 PM
  7. String Comparison
    By Purnima in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2005, 08:06 AM

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