Closed Thread
Results 1 to 15 of 15

Can Vlookups cope with spelling errors?

  1. #1
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Can Vlookups cope with spelling errors?

    I have a number of Vlooks set up to reference cost information set up against Names in various workbooks.

    The problem is wherever a name is mis-spelt then the lookup fails to match the values.


    Is there anyway around this, or is it just tough luck!?

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Can Vlookups cope with spelling errors?

    There might be. Try googling "fuzzy look-up".

  3. #3
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: Can Vlookups cope with spelling errors?

    I've had a look but can't find instructions on how to use this. I am guessing that this isnt a standard function, but is something I would need to download?

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Can Vlookups cope with spelling errors?

    I don't know what you're referring to, but there is no built-in function.

    If you want any meaningful help, the least you can do is attach a sample of what you're working with, otherwise everyone is working blind.

  5. #5
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: Can Vlookups cope with spelling errors?

    OK - sorry,

    Attached is an example of typical issues I am finding. The difference in spellings stop the lookup working but I can't find an explanation of how to approach this with 'fuzzylookup' without going into Visual Basic which I dont know how to use..yet.


    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Can Vlookups cope with spelling errors?

    It looks quite involved, and in theory it's probably bottomless in terms of how deeply one can delve into it. I think the amount of effort depends on how many unmatched names you are having to deal with. If it's <100, do it manually. If you're matching the same datasets repeatedly, start a lookup list so you can match up the error entries. If it's 100s or 1000s, it needs more serious work so someone here may be able to help. EDIT: a further thought is that if they're always two names, you could split them into two columns and start matching first names/surnames to whittle down possibilities a bit more.

  7. #7
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: Can Vlookups cope with spelling errors?

    Quote Originally Posted by StephenR View Post
    It looks quite involved, and in theory it's probably bottomless in terms of how deeply one can delve into it. I think the amount of effort depends on how many unmatched names you are having to deal with. If it's <100, do it manually. If you're matching the same datasets repeatedly, start a lookup list so you can match up the error entries. If it's 100s or 1000s, it needs more serious work so someone here may be able to help. EDIT: a further thought is that if they're always two names, you could split them into two columns and start matching first names/surnames to whittle down possibilities a bit more.
    Thanks - its upto 500 names....I think splitting them into two columns might be the way to go. Also a look up list. And also a strong email to people to use correct spelling on sheets!

    Thanks

  8. #8
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Can Vlookups cope with spelling errors?

    Or be Stalinist and impose a pre-prepared list on everyone.

    Or make poor spelling a sackable offence.

    Come back if you need further help (in relation to your reply, not the above).

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Can Vlookups cope with spelling errors?

    You could arrange the names in two columns and use a function to find the nearest match (by edit distance), and then correct the spellings in one column or the other until the reconcile.

    Note that Bill Thoms is closer to Paul Thoms than it is to William Thoms, so you'd want to be careful.
    Attached Files Attached Files
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: Can Vlookups cope with spelling errors?

    Hi - thanks for looking at this futher.

    How are the names in column C arranged, is it random, does it matter?

  11. #11
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Can Vlookups cope with spelling errors?

    shg may drop by. I don't think his very clever code needs the names to be arranged in any particular way. Try changing it and see what happens.

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Can Vlookups cope with spelling errors?

    They're just in alphabetical order, but it doesn't matter.

  13. #13
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: Can Vlookups cope with spelling errors?

    Thanks for your help

  14. #14
    Registered User
    Join Date
    04-14-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Can Vlookups cope with spelling errors?

    Quote Originally Posted by shg View Post
    They're just in alphabetical order, but it doesn't matter.
    shg: excellent solution, though i'm wondering if you are using a larger list is there a more efficient way? i've got 1 column with over 10,000 entries and it just kills excel :/

  15. #15
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Can Vlookups cope with spelling errors?

    Welcome to the forum, T3mp.

    Please take a few minutes to read the forum rules, and then start your own thread.

    Thanks.

Closed 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