+ Reply to Thread
Results 1 to 5 of 5

search the Text of Cell in a range and return the whole cell where content is found

  1. #1
    Registered User
    Join Date
    05-12-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    search the Text of Cell in a range and return the whole cell where content is found

    I am getting quite frustrated with this, so any help is very much appreciated

    I have included an excel with my questions

    1) How do I search the Text of Cell in a range and return the whole cell where content is found
    2) How do I search a string of text in a range and return the whole cell where content is found

    Many Thanks!
    Attached Files Attached Files
    Last edited by NBVC; 05-12-2011 at 03:01 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: search the Text of Cell in a range and return the whole cell where content is fou

    Try:

    =IF(ISNUMBER(SEARCH(B2,A2)),IFERROR(INDEX($G$6:$G$18,MATCH("*"&B2&"*",$G$6:$G$18,0)),""),"")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-12-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: search the Text of Cell in a range and return the whole cell where content is fou

    Thanks for your quick reply! I dont actually want to use the B column for question 2 and I am not sure why, trying out your formula gives me blank.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: search the Text of Cell in a range and return the whole cell where content is fou

    Not sure what you mean... I based my answer on your notes in the green cells of your attachment.

    See this attachment for working formula
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-12-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: search the Text of Cell in a range and return the whole cell where content is fou

    Thanks a lot! I still had to do some changes to not use the cells in column B but I figured it out, but you did all the job!

+ 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