Results 1 to 3 of 3

Thread: Closest Match

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    6

    Question Closest Match

    Excel VBA:
    Is there a way to check a string against a list of other strings and find it's closest match.

    E.G
    <List>
    Freddie
    Mr Fred
    Mr Freddy
    Fred Jnr
    Isabel
    Uncle Sam

    <Input String>
    Fredy


    In this case it would be closer to Mr Freddy, how can i do that in code.
    Even if i get a % match for each one i can then use the highest %.


    So is this unmanagable??
    Last edited by arnie1066; Jun 5th, 2006 at 06:50 AM.

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Closest Match

    uh yeah - in simplistic terms.

    I think you could read up on phonetics of words, then match phonetics perhaps?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    6

    Re: Closest Match

    Thanks for the reply, just checked out phonetics in VBA and all of the strings are in chineese.

    Could you give me an example of code or the main command so i can check further. The info on 'Phonetics' in vba seems to want to add strings (in chineese) to a cell, nothing about comparing.

    I'm sure i'm missing something so if you could point a little more precise it would be a great help, cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width