+ Reply to Thread
Results 1 to 5 of 5

Macro to apply and filter rows based on keywords

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    CANADA
    MS-Off Ver
    2010
    Posts
    44

    Macro to apply and filter rows based on keywords

    Hi,

    Looking for help with the following. I'd like to be able to run a macro that checks a column for specific keywords/phrases and then applies a filter to display just the rows with those keywords.


    Sheet one has sample data that is copy/pasted into column A on the spreadsheet.

    Sheet two shows the desired results and hides all the other data/rows except the ones that contain the specific keywords/phrases.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: Macro to apply and filter rows based on keywords

    Use of AdvancedFilter
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-07-2017
    Location
    CANADA
    MS-Off Ver
    2010
    Posts
    44

    Re: Macro to apply and filter rows based on keywords

    I've copy/pasted the formula into my worksheet but I'm running into some issues.

    X500371249104 00 0001 001 Problem with CDX UOM or qty
    X500371252361 00 0001 002 Problem with CDX UOM or qty

    X500371257580 00 0001 001 Health Canada Consmr Prod PGA data incomplete
    X500371257580 00 0001 001 Problem with Tariff
    X500371257580 00 0001 002 Problem with Tariff

    X500371257775 00 0001 002 Health Canada Consmr Prod PGA data incomplete
    X500371257775 00 0001 002 NRCan OEE data is not complete

    There are a number of rows showing up that should be filtered out and a couple that should be displayed but are not showing up.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: Macro to apply and filter rows based on keywords

    OOps
    a4 should be a5
    Please Login or Register  to view this content.
    How about
    Please Login or Register  to view this content.
    Last edited by jindon; 03-08-2021 at 01:46 AM.

  5. #5
    Registered User
    Join Date
    11-07-2017
    Location
    CANADA
    MS-Off Ver
    2010
    Posts
    44

    Re: Macro to apply and filter rows based on keywords

    Thank you very much! That fixed the errors

+ 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. Replies: 8
    Last Post: 03-11-2020, 07:41 AM
  2. Macro to apply advanced filter and select resulting rows
    By DavidFC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2018, 04:45 PM
  3. Apply multiple filters based on custom filter form [macro?]
    By Speshul in forum Access Tables & Databases
    Replies: 1
    Last Post: 12-05-2016, 05:25 PM
  4. [SOLVED] Using Array(s) to filter 13k+rows with 600+ keywords
    By robkrouse in forum Excel General
    Replies: 5
    Last Post: 01-31-2016, 04:06 AM
  5. Replies: 4
    Last Post: 07-08-2015, 12:05 PM
  6. [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
  7. [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

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