+ Reply to Thread
Results 1 to 4 of 4

Attempting to autofilter a dataset based on keywords which are part of a text string

  1. #1
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Attempting to autofilter a dataset based on keywords which are part of a text string

    Hi all,

    I have the code below which auto filters a data-set in column 10 based upon a list of values on separate worksheet. The code works perfectly when I'm filtering based on the complete text string, i.e 'computer equipment'.

    I'm now trying to modify the code so that I can auto-filter based on a single piece of text within the string, i.e. 'computer' or 'equipment', and not necessarily 'computer equipment'.

    I've searched for an answer but can't find anything helpful, any help would be appreciated.

    Thanks

    David


    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Attempting to autofilter a dataset based on keywords which are part of a text string

    I am giving you a small macro. can you use this idea to modify your macro
    see what msgbox gives.

    Please Login or Register  to view this content.
    you can also use wild cards in autofilter
    I am not an expert. better solutions may be available
    [email protected]

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Attempting to autofilter a dataset based on keywords which are part of a text string

    Untested. Try on a copy first.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Attempting to autofilter a dataset based on keywords which are part of a text string

    Hi John and venkat1926,

    Thank you both for the code, I've tried your John but it doesn't seem to work. The original code I posted autofiltered with a exact match of the text string but unfortunately your neither picks up an exact match or a work within the string.

    I've attached a sample of the workbook with your code and I'm wondering if you wouldn't mind having a look?

    Thanks again.

    David
    Attached Files Attached Files

+ 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] 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
  2. Replies: 0
    Last Post: 07-11-2012, 06:05 AM
  3. [SOLVED] find word(s) within text string that matches a list of keywords
    By ecc34_11 in forum Excel General
    Replies: 10
    Last Post: 07-11-2012, 06:04 AM
  4. [SOLVED] Using a discrete range of keywords, search a text string for match
    By Ian99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2012, 11:40 AM
  5. copying part of a text string, based on a condition
    By abuchan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-30-2010, 09:03 PM

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