+ Reply to Thread
Results 1 to 7 of 7

Multiple Criteria Using Auto Filter

  1. #1
    Registered User
    Join Date
    05-08-2008
    Posts
    35

    Multiple Criteria Using Auto Filter

    I have a range of data (up to 20,000 cells) that has up to 30 different entries. I need to apply a filter to this data to filter out all but 5 of these. Any ideas?
    Last edited by mattydalton; 10-21-2008 at 12:31 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You are limited to two criteria with AutoFilter, are all entries in one column?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    You could use Advanced Filter for this but note I frequently find Advanced Filter to be sloooooow especially on large data ranges.

    Your criteria for the Advanced Filter could be along the lines of:

    =ISNUMBER(MATCH(A2,{1,2,3,4,5},0))

    where {1,2,3,4,5} represents your 5 values you want returned in the filter. eg is strings this would be {"String1","String2","String3","String4","String5"}.

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  4. #4
    Registered User
    Join Date
    05-08-2008
    Posts
    35
    Quote Originally Posted by royUK View Post
    You are limited to two criteria with AutoFilter, are all entries in one column?
    It certainly is

  5. #5
    Registered User
    Join Date
    05-08-2008
    Posts
    35
    Quote Originally Posted by RichardSchollar View Post
    You could use Advanced Filter for this but note I frequently find Advanced Filter to be sloooooow especially on large data ranges.

    Your criteria for the Advanced Filter could be along the lines of:

    =ISNUMBER(MATCH(A2,{1,2,3,4,5},0))

    where {1,2,3,4,5} represents your 5 values you want returned in the filter. eg is strings this would be {"String1","String2","String3","String4","String5"}.

    Richard
    I keep getting the error message: "Reference is not valid"

  6. #6
    Registered User
    Join Date
    05-08-2008
    Posts
    35
    I have figured it out:

    I have created a template file with my fields in row 1 and my criteria in row 2. I have then applied an advanced filter referencing the criteria range as the range in my template file. Works a treat.

    Thanks

  7. #7
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Multiple Criteria Using Auto Filter

    you could use vba.

    Please Login or Register  to view this content.
    not really sure what happens if one of the items is not on the list.

    alsoe if you know how to make user forms you could make a shanzzy input form.

+ 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. Advanced filter with function as criteria range?
    By dakke in forum Excel General
    Replies: 23
    Last Post: 06-10-2021, 04:48 PM
  2. Applying a filter to multiple sheets
    By LemonTwist in forum Excel General
    Replies: 2
    Last Post: 07-15-2008, 04:49 AM
  3. Auto Data Range AND Filter Criteria
    By RichardBerry in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-17-2007, 07:44 AM
  4. Filter Multiple Numbers with AutoFilter
    By natepen in forum Excel General
    Replies: 2
    Last Post: 06-11-2007, 10:27 AM
  5. Auto Filter by Macro
    By ninopalermo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-01-2007, 12:38 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