+ Reply to Thread
Results 1 to 6 of 6

How do you remove UNIQUE items from a column and retain DUPLICATES?

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Cleveland
    MS-Off Ver
    Excel 2010
    Posts
    2

    How do you remove UNIQUE items from a column and retain DUPLICATES?

    I need to remove only the unique data from a column and retain the duplicates. I cannot for the life of me find an answer online or figure it out.
    I do not need to extract unique items, I do not need to remove duplicate items... I need to remove all unique (and the following colums) items and retain the duplicates.

    5779423
    5779431
    5779432
    5779440
    5779453
    5779459
    5779462
    5779462
    5779503
    5779523
    5779524
    5779545
    5779573
    5780158
    5780162
    5780162
    5780221
    5780263
    5780285
    5780293
    5780294

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

    Re: How do you remove UNIQUE items from a column and retain DUPLICATES?

    hi alemery76, welcome to the forum. assuming data in A1, try this in B1:
    =COUNTIF($A$1:$A$21,A1)=1

    do an Autofilter by pressing CTRL + SHIFT + L. anything that is TRUE in column B are unique. you can then delete them

    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

  3. #3
    Registered User
    Join Date
    02-21-2013
    Location
    Cleveland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How do you remove UNIQUE items from a column and retain DUPLICATES?

    I apologize, I wasn't specific.
    I have 10 columns of data. Only Colum A contains unique and duplicate data. I want to delete, not seperate or extract, the unique data (and the following colums) for each row containing unique data in column A.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do you remove UNIQUE items from a column and retain DUPLICATES?

    Benishiryo's solution will work, except it won't go in B, it'll go in Column 11. Then select all your data and filter on Col 11 as described by Beni. Select the visible rows and delete.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: How do you remove UNIQUE items from a column and retain DUPLICATES?

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How do you remove UNIQUE items from a column and retain DUPLICATES?

    Insert a helper column (new column B) and enter this formula in column B and copy down the length of the data:

    =IF(COUNTIF(A:A,A1)>1,1,"")

    Select all your data and sort on column B in descending order. All the duplicates will now be at the top of your data as identified by the 1 in column B. Delete all the data that doesn't have a 1 in column B.

    Delete column B.

+ 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