+ Reply to Thread
Results 1 to 2 of 2

COMBINATION - ISNUMBER, SEARCH VLOOKUP - Experts Please!

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    West Chicago
    MS-Off Ver
    Excel 2003
    Posts
    8

    Angry COMBINATION - ISNUMBER, SEARCH VLOOKUP - Experts Please!

    Hi Experts,

    Need some help with putting this function together for my macro...

    =ISNUMBER(SEARCH(VLOOKUP

    #1 I need to VLOOKUP the Customer ID ("Z") in "AirportCodes" sheet
    #2 Once found (i.e. EWR) I need to use the User Defined Destination ("AA" - Sheet1) and see if it exists in any of the columns "C:U" (AirportCodes! sheet)
    #3 If the user defined destination is found, then true, otherwise false.

    As you can see, the chart below shows values that are FALSE but should've returned true... but it's comparing the user defined destination with the actual destination, so I am trying to come up with a solution to account for all the possible user definitions of a single location.

    121212124.PNG

    The AirportCodes sheet is a sheet that has 2 columns "A" is the Airport Code (ATL), column "B" is the actual location

    In columns "C:U" I've added in as many different ways of spelling something as I can think of... and over time I'll continue to add more
    For example:
    MSP - CODE
    Minneapolis/Saint Paul - Actual Location
    St. Paul, STPAUL, Saint Paul, ST. Paul, St.Paul, MN, saintpaul, mn,... etc etc. etc. - User Definitions

    2342346521.PNG


    CAN ANYONE HELP or offer their advice? Thank you!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: COMBINATION - ISNUMBER, SEARCH VLOOKUP - Experts Please!

    You want an ever growing database of "common" names for the airports. Looking at the last picture, I would say that your data isn't well organized for this task. It should be organized like so:

    | Airport Code | Official Name | Common name

    and you should have exactly one record per common name where a common name exists. If airport A has three names, then it has only three records. You don't have to make provisions that it *might* add a fourth in the future. If that happens, the new record gets added to the table.

    Then all you need do is use Match() / Index to look up the information given a common name. Data in this format is also very amenable to pivot table analysis.

    I do have tools that will take the information in the format you have and convert it into the format I recommended. This would only have to be done once. We could probably come up with some other tools that will help you find the ID and / or official name based on partial matches and add a new common name to the database.

    This is about as far as I can take it without an actual sample file.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?
    By JulieQ in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-16-2024, 09:42 AM
  2. [SOLVED] Using IF ISNUMBER SEARCH with AND
    By larry11 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-21-2017, 05:38 PM
  3. [SOLVED] IF-OR-ISNUMBER-Search
    By manangmercy2017 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-26-2017, 12:16 PM
  4. IF ISNUMBER SEARCH AND ISERROR VLOOKUP INDEX MATCH in formula - out of my depth ;)
    By Emile du Toit in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2016, 07:29 AM
  5. IsNumber Search
    By JamesArmitage in forum Excel General
    Replies: 5
    Last Post: 05-10-2016, 08:28 AM
  6. Replies: 1
    Last Post: 07-13-2011, 09:22 AM
  7. Vlookup/search combination
    By shanesterb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2010, 12:49 PM

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