Consulting

Results 1 to 3 of 3

Thread: How to only keep duplicate values

  1. #1

    How to only keep duplicate values

    Hi, I have a large spreadsheet (90,000 rows, 12 columns). I can use conditional highlighting to see the duplicate values in one column (say column B). But I want to keep only those rows that have duplicate values in column B. There are functions built into Excel to remove dupes. But I want to do the inverse. Anyone know how I could do this?

    thanks,
    Bob

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Temporarily insert a new column A
    Put a formula in A2 (assumes you have headers in row 1):
    =IF(COUNTIF($C$2:$C$90000,C2)=1,"x","")
    (adjust to suit your ranges)
    and copy down to the end.
    Now those rows marked with an x are unique entries, you want to lose them, so Autofilter for them and delete what you see.
    Remove Autofilter, remove column A
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    ...answered...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •