+ Reply to Thread
Results 1 to 5 of 5

Filtering unwanted cells

  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Exclamation Filtering unwanted cells

    I'm trying to filter out unwanted data from a spreadsheet.

    I have two columns, (A) contains a series of numbers and this is the search criteria. Column (B) contains the data.

    Example:

    A
    7887765
    4344555
    2233455
    8386375
    3647364
    3847387

    B
    7875895
    3847387
    8386375
    5345344
    3465356
    9887645
    5767655
    8386375
    3847387

    8386375 & 3847387 appears in column A and twice in B


    I want Excel to filter out any unique numbers in column B which don't appear in column A.

    Is this possible?

    I'm using Excel 2007.

    Thanks

    Gav
    Last edited by gjonm; 09-29-2009 at 10:14 AM. Reason: Format

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Filtering unwanted cells

    C2=and(countif(B:B,B2)=1,countif(A:A,B2)=0)
    Copy down
    Returns TRUE for every unique entry in col B not found in col A, filter this column for TRUE and do what you want

    HTH

  3. #3
    Registered User
    Join Date
    09-29-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Filtering unwanted cells

    Thank you so much.

  4. #4
    Registered User
    Join Date
    09-29-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Filtering unwanted cells

    I have tried this formula. However, it seems to be return faulse when there is no match in Column A?

    From what I can see it's looking in Column A & B.

    Example attached

    Book2.xlsx

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Filtering unwanted cells

    Sorry, can't download xlsx format.

    Please describe your situation clearly:
    My formula -
    1. checks if an entry is unique in B:B i.e. count all times this appears in B:B, if it is once:
    2. checks if the entry is found anywhere in A:A (i.e. count all times this entry in B appears in A:A - if it is none, then TRUE

    This is what I understood from your description:
    I want Excel to filter out any unique numbers in column B which don't appear in column A.
    CC

+ 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