+ Reply to Thread
Results 1 to 6 of 6

searching an array from a column set of text and returning a value..

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    searching an array from a column set of text and returning a value..

    Sorry if this was reposted but I couldnt find something I needed exactly..
    Basically I have a column for key words I need to search for, Column A and a column for return values on those key words, column B
    on column C I have a text array that will have one of those key words on column A.
    I need to: 1) search column C and identify which keyword appears from column A and 2) return the cooresponding column B

    For example, column A will have: cat, dog, ferret, chicken, column B will have catreturn, dogreturn, ferret return, chicken return
    column C will have 1248cat5667, hxyefhferret56, ineedtogetadog435. I need column D to return catreturn, ferret return, dogreturn

    Let me know if you need any more clarification!
    Thanks so much guys!!!!

  2. #2
    Registered User
    Join Date
    05-07-2013
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: searching an array from a column set of text and returning a value..

    so to clarify, I need column D do do some sort of a look-up in column A based on column C, find the particular value in A and return corresponding value in column B...

  3. #3
    Registered User
    Join Date
    05-07-2013
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: searching an array from a column set of text and returning a value..

    issue.jpg
    need to return column D

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: searching an array from a column set of text and returning a value..

    Try this:

    =LOOKUP(1E100,SEARCH(A$2:A$5,C2),B$2:B$5)

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    05-07-2013
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: searching an array from a column set of text and returning a value..

    thank you so much thats exactly what i was looking for!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: searching an array from a column set of text and returning a value..

    You're welcome. Thanks for the feedback!

+ 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