+ Reply to Thread
Results 1 to 2 of 2

Code or formula to compare text strings to find those that are similar but not exact

  1. #1
    Registered User
    Join Date
    08-27-2010
    Location
    Torrance, CA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Code or formula to compare text strings to find those that are similar but not exact

    I have a large list of names and addresses to compare and match. Name in M, W and Z and Address in R and Y. The following formula works great, however it kicks out as a No Match things like John Smith, MD vs John Smith and 415 Anywhere St. vs 415 Anywhere Street. Also I discovered that columns M and R are more truncated, and sometimes cut off the last few letters.

    Please Login or Register  to view this content.
    I would like to be able to differentiate the no match from those that are similar, where the only real difference is things like abbreviations or titles. Is there a way to add to the above formula so that it would give a response of Similar Name or Similar Address if the strings were close, (such as in the examples given above)?

    Or if it could be done, (but not within the above formula), would it be possible to compare all the ones that returned No Match to see which were similar?

    Is there a formula or VB code that could do this? Any help would be greatly appreciated.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Code or formula to compare text strings to find those that are similar but not ex

    Hello dbwiz,

    It can be done using VBA and perhaps using worksheet formulae. You haven't provided a large enough sample on which to base a solution. If you can post your workbook, it will be a big help.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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