+ Reply to Thread
Results 1 to 13 of 13

Partial Vlookup Match

  1. #1
    Registered User
    Join Date
    10-03-2004
    Posts
    70

    Partial Vlookup Match

    In cells A1:A10 I have the following list;

    FLOUR
    DOUGH
    CHICKEN
    BEEF
    PEPPERS
    TOMATOES
    CHEESE
    ONIONS
    POTATOES
    SALAMI

    I want to be able to get a partial match that will allow for spelling mistakes by the user. The wild card (*) seems to only look at the left-most text and return #N/A if the text isn't matched sequencially.

    For example
    Cell B1 I type FLO*
    C1 has the formula =VLOOKUP(B1,A1:A10,1,FALSE)
    The return is FLOUR, great.

    But if in B1 I type "FLAUR" (simulating a spelling mistake) it returns #N/A.

    Is there any way to get a "best" match ?

    p.s. You'll gather my staff can't spell !
    Last edited by OptionTrader; 11-15-2009 at 08:28 AM.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Partial Vlookup Match

    Hi,

    Why don't you use the Autocomplete feature ... to make your life easier ...

    HTH

  3. #3
    Registered User
    Join Date
    10-03-2004
    Posts
    70

    Re: Partial Vlookup Match

    Hi Jean

    It's complicated, but I can't.

  4. #4
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Partial Vlookup Match

    Hi,

    Could Data Validation be an alternative ... ???

  5. #5
    Registered User
    Join Date
    10-03-2004
    Posts
    70

    Re: Partial Vlookup Match

    Thanks again Jean, but not an option.

    Here is the problem in it's entirety;

    My staff enter a customers address into a cell e.g, 123 Cavalier Way, which is them matched to a database. The problem is they often get the spelling wrong e.g, 123 Civalier Way which obviously won't then match in the database.

    I need to find a way to offer a "similar" match to Civalier Way.

    N.B. We are a fast food operation and so time is of the essence.

  6. #6
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Re: Partial Vlookup Match

    Hey!
    I was thinking mebbe u could use the zip code to lookup a list in the database but ur into fast food, so i'm guessing zip codes cant work.... could using phone nos. instead be an option?

  7. #7
    Registered User
    Join Date
    10-03-2004
    Posts
    70

    Re: Partial Vlookup Match

    Quote Originally Posted by mohitspamz View Post
    could using phone nos. instead be an option?
    Sure, but only when they are an existing customer i.e, already on the database.

  8. #8
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Re: Partial Vlookup Match

    So wot wud u be looking up for, for new customers using address? :s

  9. #9
    Registered User
    Join Date
    10-03-2004
    Posts
    70

    Re: Partial Vlookup Match

    Quote Originally Posted by mohitspamz View Post
    So wot wud u be looking up for, for new customers using address? :s
    Yes, and if someone could help me with the 1st post problem I could work around the rest of the problem myself.

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Partial Vlookup Match

    Sorry to be a bore but I'm kind of with the others... in short there is no formula that will do this for you... Data Validation has no Auto Complete feature. You could try and use Fuzzy Vlookup UDFs etc but they will still be at best a "best-guess".

    If you want Auto Complete and simultaneously ensure normalised data I would suggest you first have a toggle for Existing/New Customer and when Existing subsequently use a ComboBox control as the basis for Address entry - this will allow you to restrict entries to existing addresses whilst also allowing for Auto Complete so as to speed up the process.

    The issue of New Customers and adding data to existing entries is I think for another time.

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Partial Vlookup Match

    Maybe the solution posted by shg here

    http://www.excelforum.com/excel-gene...ng-errors.html
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  12. #12
    Registered User
    Join Date
    10-03-2004
    Posts
    70

    Re: Partial Vlookup Match

    Quote Originally Posted by ChemistB View Post
    Maybe the solution posted by shg here

    http://www.excelforum.com/excel-gene...ng-errors.html
    That looks very promising ! I'll work with it over the weekend and let you know how I get on.

    Thanks to all who've replied.

  13. #13
    Registered User
    Join Date
    10-03-2004
    Posts
    70

    Re: Partial Vlookup Match

    That works very well. My thanks to Chemist and shg.

+ 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