+ Reply to Thread
Results 1 to 2 of 2

Filtering a range of cells, based on another range

  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    Grand Marains, MN
    MS-Off Ver
    Excel 2007
    Posts
    1

    Filtering a range of cells, based on another range

    Hey, I'm pretty new with excel, and I need some help. I have a list of usernames, and another list of usernames. What I want to do is delete all the usernames in one list that aren't in the other list. Is there a easy way to do this?

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Filtering a range of cells, based on another range

    Maybe a few ways to go about this.

    1) In 2007 there is a function built into the ribbon which will remove duplicates...

    Data >> Data Tools >> Remove Duplicates

    Take one list and paste it below the other list and then run the option above...

    2) Again, combine the two list and then use the Advanced Filter...

    3) Use the match function to see what is different. Once you copy the formula in B2 and copy down, all those that match List2 will have a number and those not matching will show #N/A. Filter column B by the #N/A and delete.

    B2 copied down >> =MATCH(A2,$C$2:$C$4,0)

    Data Range
    A
    B
    C
    1
    List1
    Match
    List2
    2
    Jan
    1
    Jan
    3
    Feb
    #N/A
    Mar
    4
    Mar
    2
    May
    5
    Apr
    #N/A
    6
    May
    3
    HTH
    Regards, Jeff

+ 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] Macro needed to clear cells in range based on value of cells in another range
    By msmith7113 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2013, 12:32 AM
  2. filtering date column based on the range
    By kmksprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2012, 05:04 PM
  3. Replies: 6
    Last Post: 11-11-2012, 12:40 AM
  4. [SOLVED] Copy data from a range of cells into a blank range based on common cell
    By vanmeterkj in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-03-2012, 10:18 AM
  5. filtering based on multiple columns within a range.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2010, 03:02 AM

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