+ Reply to Thread
Results 1 to 7 of 7

Incorrect spelling disrupting Vlookup

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    34

    Incorrect spelling disrupting Vlookup

    Hi guys,

    Have 8000 records that im trying to pull data for from 250k records, the base data is supposedly the same but I've noticed that human error on the 8000 records has intervened. There are about 1500 spelling mistakes.

    I don't have many columns that the two sheets share so i can't use another comparator.

    In order for my vlookup to work is there any way of correcting this on mass? fixing them one by one is not an option as per the volume of the error and work required to fix one ( manually scan 250k records with minimal info until you find the correct spelling then copy into other sheet)

    Tried to create an example sheet but can't seem to replicate the issue, it seems to guess the right word even though they are misspelled??

    Any ideas for the big file?

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Incorrect spelling disrupting Vlookup

    if you were to do this manually, what is the logic that you would apply? if there is a clear definition of that, it could be attempted to formulate / programmatise such a logic.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Registered User
    Join Date
    04-04-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Incorrect spelling disrupting Vlookup

    hmmm.. well my main logic for manually doing it is above ie just look for the word that is similar / obviously misspelled.

    The two shared data points are a column of names, which could have more than one word and a column of dates eg 09/11/2009.
    If i was two try logically program for it I suppose i'd use the name column as a string comparator and tell it to search within the range of the date attached to it.

    So for example in the "lookup" sheet I may have the word "mispelled" and the date 09/11/2009, so i would say go to all rows containing the date 09/11/2009 on the "data" sheet and compare to the range "name" on the data sheet until the most likely match is found ie "misspelled"

    Problem is i have no clue how to do any of that lol.

    I've managed to get an example of my problem:
    vloopuk error.xlsx

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Incorrect spelling disrupting Vlookup

    Perhaps this thread could be of help to you?

    http://www.excelforum.com/excel-prog...o-to-fail.html

    Alf

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Incorrect spelling disrupting Vlookup

    i dont think you can,there is some code around that would tell you a % match but other than having a list of words and all the possible ways each could be spelt incorrectly i dont see how it can be done. it would be quicker to find all the ones that match as you have done,filter on false and get a human to fix them!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Incorrect spelling disrupting Vlookup

    I have had to do something similar, i used filters to find all the same "mis-spelled" words, and then either fixed them there, or used find/replace if there were lots of them
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    04-04-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Incorrect spelling disrupting Vlookup

    Yeah i had my doubts, When i said use the name as a comparator i was thinking of one of the first things you learn to do in C, place two strings in an array and run them through a for loop comparing each char as it goes. Didn't know if this was possible in excel / vb

    The erroneous records have been dispatched far away from me, I wouldn't have the patience to manually fix 10 never mind 1.5k haha.

    P's I'm a beginner in C, Just in case anyone wonders why im doing stuff in excel/VB that could probably be easily fixed in C .

+ 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