+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : How to keep ONE instance of duplicates while removing duplicates AND unique values

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to keep ONE instance of duplicates while removing duplicates AND unique values

    How can I remove duplicates and unique values all in one go?
    Example:

    Before:
    A
    C
    D
    E
    B
    B
    D

    After:
    B
    D

    Any help is appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: How to keep ONE instance of duplicates while removing duplicates AND unique values

    In other words, you want to keep only one instance of any value that repeats?

  3. #3
    Registered User
    Join Date
    03-28-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to keep ONE instance of duplicates while removing duplicates AND unique values

    Yes, that's what I'm looking for.

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: How to keep ONE instance of duplicates while removing duplicates AND unique values

    look at attachment
    empty cells delete manually
    Attached Files Attached Files
    Last edited by tom1977; 03-28-2012 at 04:48 PM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to keep ONE instance of duplicates while removing duplicates AND unique values

    @tom1977
    thats a strange if
    =IF(COUNTIF($A$2:$A2,A2)=2,$A$2:$A2,"")
    should be
    =IF(COUNTIF($A$2:$A2,A2)=2,A2,"")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: How to keep ONE instance of duplicates while removing duplicates AND unique values

    true strange but results are the same

  7. #7
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: How to keep ONE instance of duplicates while removing duplicates AND unique values

    See attached modified workbook.
    Attached Files Attached Files

+ 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