+ Reply to Thread
Results 1 to 27 of 27

removing 'all' duplicates

  1. #1
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    removing 'all' duplicates

    I have a column of data which has multiple duplicates, I wish to remove all of the duplicates.

    say I have


    aaa
    aaa
    bbb
    bbb
    ccc
    ccc
    ccc
    ddd
    eee
    fff

    then I would be left with just the records that never had a duplicate.

    ddd
    eee
    fff

    How would I do this please.

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: removing 'all' duplicates

    can you use helper columns of do you need a single cell formula
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: removing 'all' duplicates

    if you can use an Array formula you can do this

    Please Login or Register  to view this content.
    (this reefers to the formula in my spreadsheet see below)

    remove dup.xlsx

  4. #4
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Re: removing 'all' duplicates

    Would using the built in Excel "Remove duplicates" function under the DATA Tab not help you here?

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: removing 'all' duplicates

    you don't say what version of excel you have (i think the remove duplicates function appears in 2007 and later). It would take me a couple steps to do it but i'd copy the column, paste it elsewhere, then use remove duplicates, then do a countif against the original list. Then use a vlookup with the original and anywhere where the cell returns a value greater than 1, use conditional formatting to color code the cell. Then final step filter on those colored then delete them. Rather a long way to get the job done and i'm sure there are shorter ways.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  6. #6
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    Re: removing 'all' duplicates

    I am wanting to have left everything that never had a duplicate.

    so if it was

    aa
    aa
    bb


    then I would have just

    bb

    left, all duplicates (aa) to be taken out of the column

    i have version 2010.

  7. #7
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: removing 'all' duplicates

    did you look at my file. i think that that does exactly what you need.

    if you upload a ample book we can look at it and see more clearly your issue

  8. #8
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: removing 'all' duplicates

    Hi, Apply the below formula in c3 and drag down, filter for false and remove it

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  9. #9
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: removing 'all' duplicates

    sorry double

  10. #10
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Re: removing 'all' duplicates

    Something else you can try is the formula below, then do a sort and remove all the 0

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    Re: removing 'all' duplicates

    yes that would be right, I wish to remove all the doubles... sorry my bad.

  12. #12
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: removing 'all' duplicates

    my version, see attached.
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: removing 'all' duplicates

    is there any reason mine wouldn't work?

    its a single cell solution and should do everything you need. if not i might be able to tweak it

  14. #14
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    Re: removing 'all' duplicates

    I tried that but it did not show any single results. all fields were blank. I shall submit a sample...
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: removing 'all' duplicates

    Hi,

    same twiggywales's formula and approach without array status:

    With reference with your file in E2 and below:


    Please Login or Register  to view this content.



    Regards
    Last edited by canapone; 10-30-2014 at 06:46 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  16. #16
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: removing 'all' duplicates

    Hi again

    in the attachment formulas using AGGREGATE.

    Regards
    Attached Files Attached Files

  17. #17
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: removing 'all' duplicates

    your sample with results
    Attached Files Attached Files

  18. #18
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: removing 'all' duplicates

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in E2

    Punnam

  19. #19
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: removing 'all' duplicates

    another way to do what you need it to put this in your cell and drag to suit

    Please Login or Register  to view this content.

  20. #20
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,703

    Re: removing 'all' duplicates

    There are some complicated formulae here. I think the easiest will be to put this formula in B2:

    =COUNTIF(A:A,A2)

    then copy down to the bottom of your list in column A (double-click the fill handle). Then apply a filter to column B, and use "does not equal 1" as the criteria. then select all the rows that are visible and press the <delete> key. Then you can select All on the filter drop-down to see the remaining records as in your sample.

    ( If you want the remaining records to be bunched up with no spaces, then you can click the delete rows icon, rather than use the <delete> key ).

    Then you can remove column B.

    Hope this helps.

    Pete

  21. #21
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    Re: removing 'all' duplicates

    yes that seems to work for me. thanks

  22. #22
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: removing 'all' duplicates

    Hi Jason_C ,

    You have received answers from many forum members, your post 21 is referring to whom ?

    Punnam

  23. #23
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    Re: removing 'all' duplicates

    Attached is the method I used, but the last step is to get the content of column B moved over also.

    Thank you all for your support on this.
    Attached Files Attached Files

  24. #24
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: removing 'all' duplicates

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In F2

    Punnam

  25. #25
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    Re: removing 'all' duplicates

    perfect, thank you

  26. #26
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: removing 'all' duplicates

    what about this formula

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

    paste it in E2 drag down.

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

    Re: removing 'all' duplicates

    If your data is in column A from A1 to A10 this if entered in B2 and copied down will return a listing without blanks of the values that appear only once in column A

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  2. Excel 2007 : Removing all duplicates
    By TINA2 in forum Excel General
    Replies: 2
    Last Post: 10-21-2008, 09:25 AM
  3. Removing duplicates
    By nuno in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2007, 08:29 AM
  4. Removing Duplicates
    By sat in forum Excel General
    Replies: 5
    Last Post: 06-18-2005, 07:05 PM

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