+ Reply to Thread
Results 1 to 2 of 2

Delete Rows that Do Not Contain Multiple Keywords

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    10

    Delete Rows that Do Not Contain Multiple Keywords

    Hello,

    I am trying to create a macro that will go through column A and delete all the rows that do not contain multiple keywords. Each time the macro is executed, the amount of keywords can change and this is where I am getting held up. I would imagine that an array would have to be used but I only know how to input an exact amount of keywords and not a variation of keywords each time.

    The keywords in the rows I need to remain can contain alpha characters, numbers, or special characters as well. The code I use to search through and delete all but a single keyword is below but I need to apply it to a broader spectrum of keywords. Any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Delete Rows that Do Not Contain Multiple Keywords

    Hi Exia,

    You can list your keywords in a hidden sheet and then use a dictionary to cull the lines
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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] VBA looking for multiple keywords and return concatenated keywords, that were found
    By Kpacu007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2014, 06:03 AM
  2. Find multiple keywords in all columns and copying discovered rows into new sheet
    By noxfinitie in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 07-03-2014, 01:14 PM
  3. [SOLVED] Search for keywords and copy rows containing keywords to new sheet
    By lenorsk in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-15-2013, 06:54 AM
  4. [SOLVED] HDI - Return multiple keywords in a text column based on a set of available keywords
    By zneiley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2013, 01:32 PM
  5. search multiple columns and count number of rows the keywords appear
    By vincegc8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2013, 02:01 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