+ Reply to Thread
Results 1 to 7 of 7

How to search for a keyword and return the ENTIRE cell contents to a new sheet?

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    8

    Question How to search for a keyword and return the ENTIRE cell contents to a new sheet?

    Based off the keywords in column A on SHEET ONE I want to search SHEET TWO for those keywords. The keywords will only appear once in a single cell on sheet two.* I then want to return the ENTIRE contents, not just the matching keyword, of the cell containing that keyword to column B on sheet one. I've attached an example excel file showing what I'm trying to do.

    Thanks in advance for you help!
    Attached Files Attached Files

  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,002

    Re: How to search for a keyword and return the ENTIRE cell contents to a new sheet?

    Will the keywords always be in column B of sheet 2? Can there be multiple answers?
    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
    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,002

    Re: How to search for a keyword and return the ENTIRE cell contents to a new sheet?

    On the assumption that multiple results CAN occur and that the data ARE always IN Column B; try this...
    Attached Files Attached Files

  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: How to search for a keyword and return the ENTIRE cell contents to a new sheet?

    Try this

    =INDEX(Sheet2!$B$2:$B$18,MATCH("*"&A5&"*",Sheet2!$B$2:$B$19,0))
    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

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: How to search for a keyword and return the ENTIRE cell contents to a new sheet?

    Formula
    Please Login or Register  to view this content.
    VBA you could use

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-28-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How to search for a keyword and return the ENTIRE cell contents to a new sheet?

    Thank you - that worked great.

  7. #7
    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: How to search for a keyword and return the ENTIRE cell contents to a new sheet?

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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] Search for the keyword with and condition and return to the different sheet within excel
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-18-2014, 11:05 AM
  2. [SOLVED] keyword search - a macros to change font color for specific key words (not entire cell)
    By kingwhopper in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2014, 12:25 PM
  3. Replies: 6
    Last Post: 03-18-2014, 11:16 AM
  4. [SOLVED] Formula to search from keyword list and return adjacent cell
    By Ninja2k in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2013, 08:44 AM
  5. Return Cell Contents by Sheet Name Search
    By gratedwasabi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2012, 10: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