+ Reply to Thread
Results 1 to 4 of 4

Vlookup - Searching for text within a cell

  1. #1
    Registered User
    Join Date
    09-04-2017
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    4

    Vlookup - Searching for text within a cell

    Hi all,

    I'm trying to set up a vlookup, that looks to see whether a word is in a cell, and then returns a code. See the attachment.

    I basically want the vlookup to check the first cell in the description column to see if it matches any of the Key, and then if it did, I want the solution of the formula to be the one letter code shown in column E.

    Eg. for cell A2 the answer would be O, cell A3 the answer would be R.

    Appreciate any tips!
    Attached Files Attached Files
    Last edited by bradro; 09-04-2017 at 04:56 PM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Vlookup - Searching for text within a cell

    This will pick up most of them. Probably would need VBA to do a fuzzy match. Formula is an Array Formula

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


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    09-04-2017
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    4

    Re: Vlookup - Searching for text within a cell

    Thanks heaps Mike! Works a charm!

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup - Searching for text within a cell

    Here is a regular formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or if you need remove errors
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 09-04-2017 at 05:44 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  2. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. how to bring all vlookup returns even with duplicate vlookup search keys
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:53 PM
  6. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  7. Replies: 5
    Last Post: 07-29-2009, 07:53 AM

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