+ Reply to Thread
Results 1 to 5 of 5

Find text in cell from list and return text from adjacent cell

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    14

    Find text in cell from list and return text from adjacent cell

    Hi,

    I'm looking to search a cell (Look Up Value), see if it contains certain text (from list) and return an adjacent cell's text (Adjacent Cell).

    Not every text will JUST contain the text, so I need to find the text within other characters. In the example below, I'd like the formula to be in Column B and the first result would return "Fruit"

    Example:

    Look Up Value Result List Adjacent Cell
    TestApple Text Apple Fruit
    HippoHippoBig Hippo Hippo Animal
    1234Hippo T-Rex Dinosaur

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Find text in cell from list and return text from adjacent cell

    Something like this??

    =IFERROR(LOOKUP(1000,SEARCH($D$2:$D$4,A2),$E$2:$E$4),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-20-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Find text in cell from list and return text from adjacent cell

    It works, but it's finiky - I can only get it to work if the look up list array is exactly the same length as the look up list. So I can't just say look at column K:K... Is that right?
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Find text in cell from list and return text from adjacent cell

    See if this helps.
    Produce a table of Words and Categories then reference the table using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    As your lists change the formula will still work.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Find text in cell from list and return text from adjacent cell

    I didn't receive a notification about your earlier reply. JeteMc's reply accounts for it. You extended the lookup range to include blank cells. You shouldn't have. A Table, or a dynamic named range will fix that.

    =IFERROR(LOOKUP(1000,SEARCH(Search,D2),Response),"")

    CTRL-F3 to view /edit the named ranges.
    Attached Files Attached Files

+ 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. Find specific value in Row, Return Text from Adjacent Cell
    By oneforfive in forum Excel General
    Replies: 5
    Last Post: 07-21-2015, 03:57 PM
  2. [SOLVED] Find text in column and return adjacent cell
    By frostii in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-27-2015, 07:44 PM
  3. Replies: 6
    Last Post: 03-06-2013, 03:30 PM
  4. Replies: 6
    Last Post: 02-28-2013, 11:27 AM
  5. Find text in array & return adjacent cell value
    By econbizer in forum Excel General
    Replies: 13
    Last Post: 10-13-2012, 01:26 AM
  6. [SOLVED] Find text in a column or range and return value of adjacent cell
    By chemoul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 04:30 AM
  7. Find and Match Text in Column Return Adjacent Cell
    By biancam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2012, 02:45 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