+ Reply to Thread
Results 1 to 5 of 5

Advanced filtering with a criteria list

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Advanced filtering with a criteria list

    Hi,

    I have an excel sheet with 15 columns. I want to filter column B, it has over 100 cells for brand names.
    For example,
    Apple
    Apple
    Intel
    Intel
    Nike
    Puma
    Sony

    I have a list of the brand names that I want to keep,
    Sony
    Intel
    Apple

    How would I use the filter in excel to filter the original list to only keep the brand names I want. I want it to work like a regular filter in excel where it hides the row of data that I want filtered out.
    Thank you for your time.

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Advanced filtering with a criteria list

    To grab the subset at one go, one simple way is to use COUNTIF

    Insert 2 new columns E and F, say
    Paste your selected sublist items into F2:F4, ie
    Sony
    Intel
    Apple

    Put in E2: =COUNTIF($F$2:$F$4,B2)
    Copy down, then filter on col E for 1
    Copy the filtered rows and paste special as values into a new sheet
    -----------------------------------
    Any worth? Click the little star at the bottom left of my responses

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Advanced filtering with a criteria list

    When you start to filter, you can select/unsxelect multiple items, so all you need to do is just uncheck "ALL" and then check the items you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Advanced filtering with a criteria list

    hi jimmy. 2 ways here to do Advanced Filter, if that's what you need.

    1. set up a place to put your criteria. I can put in J1:J4
    Brand
    Sony
    Intel
    Apple

    2. select your range to filter. say mine is in A1:G20. go to Data -> Advanced

    3. List Range:
    $A$1:$G$20
    Criteria Range:
    $J$1:$J$4

    4. Press OK.

    The other method is a slight change in Step 1 & 3.
    1. Leave a blank cell in cell L1. then in L2 is a formula:
    =OR($B2={"Sony","Intel","Apple"})

    3. Criteria Range:
    $L$1:$L$2

    the other steps are the same
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    06-04-2013
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Advanced filtering with a criteria list

    Thanks Benishiryo,

    Your sample excel sheet helped me understand how to do the steps more clearly. You've been very helpful!

+ 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: 3
    Last Post: 05-15-2011, 11:46 AM
  2. Excel 2007 : Advanced Filtering criteria
    By rocu in forum Excel General
    Replies: 1
    Last Post: 11-14-2008, 01:39 AM
  3. Advanced Filtering with multiple criteria
    By drumbody in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2007, 08:51 AM
  4. [SOLVED] trouble filtering a list. Why isn't column filtering?-number of criteria
    By Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2005, 11:05 AM
  5. [SOLVED] Advanced Filtering - Computed Criteria
    By KIM in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-28-2005, 05:06 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