+ Reply to Thread
Results 1 to 3 of 3

Search for string within a table and all rows that contain the string

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    indiana, US
    MS-Off Ver
    2016
    Posts
    33

    Search for string within a table and all rows that contain the string

    Hello,
    I have a table full of information that I would like to search by keyword. I don't know if it is possible, but I would prefer to search by multiple keywords and if any of them are found in the cell the row is returned to a new table or the original table can be filtered by the results. The columns of interest are E&F. If the keywords are found in cells from E or F I want to keep the entire row. For my application the keywords will only be part of the text string in each cell (i.e. if the keyword is "truck" the cell may contain "The blue truck was nice.").

    Any help would be greatly appreciated. I have searched online for solutions and tried multiple methods, but cannot get anything to work correctly.

    Attached is an example file to help show what I am trying to do.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: Search for string within a table and all rows that contain the string

    If you undo the "Merge & Center" in your Search Terms, Use "Center Across Selection" instead, you could try this.

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Search for string within a table and all rows that contain the string

    to Hide / unhide the rows, use this code behind your buttons.
    Please Login or Register  to view this content.
    edit, missed that you were after just the 2 columns. pinched a line of code from jolivanes
    2nd edit. Fixed clear button code.
    Last edited by Neil_; 08-31-2016 at 12:39 PM.
    Frob first, tweak later

+ 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. Script to Search for a specific String then return cell values above that String-4
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2015, 01:28 AM
  2. [SOLVED] Script to Search for a specific String then return cell values above that String-3
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2015, 01:50 PM
  3. [SOLVED] Script to Search for a specific String then return cell values above that String-2
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 01:00 PM
  4. Replies: 1
    Last Post: 09-11-2014, 10:59 AM
  5. [SOLVED] Search for string across header row, then search for another string down found column
    By TucsonJack in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2012, 02:09 PM
  6. Search 'String' and tag accordingly using 'String table'
    By tms12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2011, 02:10 PM
  7. search a string withing a string : find / search hangs
    By itarnak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2005, 11:05 AM

Tags for this Thread

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