+ Reply to Thread
Results 1 to 6 of 6

Looking up partial text from a column

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    49

    Looking up partial text from a column

    Hi Guys,

    Need your help on a formula for looking up "inexact" hotel names from a list of hotel names.
    If there is also a chance that it can be looked up even if the inexact name is misspelled.

    I have attached a spreadsheet of the desired results.

    Hotel Data Matching.xls

    Appreciate the help!
    Thanks!

  2. #2
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Looking up partial text from a column

    hmm.. am sorry, but am really not able to understand your objectives fully. Are you trying to make sure people don't mis-spell the hotel names when they enter the data?? If yes, you could create a named range with the list of available hotels and put that into the validations of the cells where they'll be entering the hotel names.

    If no, I'll need to understand your needs a little more..
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: Looking up partial text from a column

    Sorry if it was unclear.
    Let's just say that since the hotel names are user-entered, its error prone.
    My goal here is to match these user entered hotel names (misspelled and/or inexact) to the closest hotel name from the given list, if it's possible.

    Hope that makes more sense.

  4. #4
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Looking up partial text from a column

    Hmm.. if you'd like to fully remove the errors while input, you will of course reduce the amount of codes and calculations - which means more savings on CPU. You should try putting validations for this job. It suits the best as per my experiences. If users enter the right input, you'll always get right data for calculations. Hence, perfect solutions!

    Named Ranges basically are of two types - Static and Dynamic. I prefer dynamic for if am not sure, that the list might get longer over a period of time or not. Considering your example, I think it might.

    Following are my examples on how you can create a named range
    1. Static : http://postimg.org/image/h78q9zrod/
    2. Dynamic (using your file for example) : http://postimg.org/image/dlqcdfl5p/

    Formula used for creating the named range is as follows:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by codeslizer; 07-11-2013 at 09:19 AM. Reason: Attaching the File For References

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Looking up partial text from a column

    FuzzyLookup is best in this case...
    Google it..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  6. #6
    Registered User
    Join Date
    06-09-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: Looking up partial text from a column

    @codeslizer

    Unfortunately, my goal is not to create a data validation to prevent any input errors, sorry if you don't understand my objective, thanks for the suggestion hough.
    The goal is to simply match the input data to the given list, but the challenge is that the input data is almost always inexact and/or misspelled.

    @Debraj
    I had encountered FuzzyLookup as a solution to this problem and I agree that it can definitely help.
    But I am at a setting where I can't download and install add-ins to my excel, so if there's any formula that can mimic the function of FuzzyLookup, it will definitely help.

+ 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