+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Filtering worksheet 1 using worksheet 2 as criteria

  1. #1
    Registered User
    Join Date
    07-10-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Filtering worksheet 1 using worksheet 2 as criteria

    Hello there. I have two worksheets containing customer details-worksheet 1 contains current customers-column A containing unique numeric customer identifiers. Worksheet 2 contains a larger customer list, some of which are obsolete, but column A also contains the customer identifiers. I want to filter worksheet 2 so that customers that don't appear in worksheet 1 are removed. Does anyone have any ideas? Many thanks,
    Mattbro

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Filtering worksheet 1 using worksheet 2 as criteria

    1) In an empty column on sheet 2 put this formula in the second row, then copy down the whole dataset:

    =ISNUMBER(MATCH(A2, Sheet1!A:A, 0))

    A series of TRUE/FALSE answers will appear

    2) Highlight the new column and turn on the AUTOFILTER

    3) Filter this column for FALSE

    4) Highlight all the rows remaining visible and delete the rows (don't clear them, delete them)

    5) Turn off the Autofilter and clear the new column of data... done.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-10-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Filtering worksheet 1 using worksheet 2 as criteria

    Yes! Job done. Thanks for your help.

    Quote Originally Posted by JBeaucaire View Post
    1) In an empty column on sheet 2 put this formula in the second row, then copy down the whole dataset:

    =ISNUMBER(MATCH(A2, Sheet1!A:A, 0))

    A series of TRUE/FALSE answers will appear

    2) Highlight the new column and turn on the AUTOFILTER

    3) Filter this column for FALSE

    4) Highlight all the rows remaining visible and delete the rows (don't clear them, delete them)

    5) Turn off the Autofilter and clear the new column of data... done.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Filtering worksheet 1 using worksheet 2 as criteria

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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