+ Reply to Thread
Results 1 to 4 of 4

Vlookup - If cell contains characters from list, use list to return value

  1. #1
    Registered User
    Join Date
    03-22-2016
    Location
    New Jersey
    MS-Off Ver
    2007
    Posts
    9

    Vlookup - If cell contains characters from list, use list to return value

    Hi,
    Apologies ahead of time if this has already been answered. I've looked but can only find the answers reversed from what I need.

    I have a list of service names (A2:A100).
    I have a reference list (Tab="Mapping") of how I want to mark each service if it contains certain words/characters (A2:B12).

    Service Names:
    Spanish Language Service
    Americas En Espanol Web VOL
    Delivery Fee for Italian Service
    Bourse News
    Mapping
    (A) If contains (B) Mark As
    Bourse French
    Spanish Spanish
    Espanol Spanish
    Italian Italian
    So I want to lookup the product, and if it contains MappingA, return MappingB. There are no set number of characters, and the word can be anywhere in the product name.
    I've tried using wildcards, but they only seem to work if the wildcard can be used in the lookup value. I need it in the table array...

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Vlookup - If cell contains characters from list, use list to return value

    Hello
    Try the following:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Here the Service name is in A2 and the lookup lists are on the 'Mapping' tab in A2:B5. No match will return '#N/A', if there's more than 1 match it will the return the last on the list.

    *Note of credit to Tony Valko for the LOOKUP solution.

    Hope this helps.
    DBY

  3. #3
    Registered User
    Join Date
    03-22-2016
    Location
    New Jersey
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup - If cell contains characters from list, use list to return value

    That's perfect - thank you so much!!!

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Red face Re: Vlookup - If cell contains characters from list, use list to return value

    Glad to have helped. I've just realized that the VLOOKUP isn't necessary, just amend the 'Result Vector' (red) of the LOOKUP to:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Sorry not thinking straight!

+ 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] Combine Data Validation list, vlookup and Omit Characters
    By Hilkiah in forum Excel General
    Replies: 7
    Last Post: 08-31-2015, 11:28 AM
  2. [SOLVED] compare list B with list A, return cell data on row where B matched A
    By master-richie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-04-2015, 01:59 AM
  3. [SOLVED] Search/return a cell with a large number of characters from a list (column)
    By jwebber82 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-30-2014, 09:44 PM
  4. VLOOKUP to return a list of values
    By Simon.xlsx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2014, 10:56 AM
  5. Validation list (with illegal characters in the range list)
    By Elainefish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2013, 04:38 PM
  6. [SOLVED] using vlookup to return a list of drivers by their car #
    By rtbbread in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2013, 01:56 PM
  7. Replies: 8
    Last Post: 02-28-2010, 10:36 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