+ Reply to Thread
Results 1 to 8 of 8

Removing Duplicates and Associated Unique Value

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    Mount Pearl, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Removing Duplicates and Associated Unique Value

    I'd like to be able to identify truly unique records in a large database; NOT the unique records associated with groups of records.

    For example:

    1 1 1 1
    1 1 1 1
    1 1 1 1
    2 2 2 2
    2 2 2 2
    1 1 2 2

    I'd like the output:

    1 1 2 2

    NOT:

    1 1 1 1
    2 2 2 2
    1 1 2 2

    Any simple way of doing this?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Removing Duplicates and Associated Unique Value

    Hi acsmith and welcome to the forum,

    See the attached for a possible answer.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    08-16-2011
    Location
    Mount Pearl, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Removing Duplicates and Associated Unique Value

    Hi MarvinP,

    I appreciate your suggestion; however, creating a helper column for 5000 records with so many columns for each would take too much time and too much room for error.

    This is frustrating, because using the advanced filter (unique values) and deleting, I can get the output:

    1 1 1 1
    2 2 2 2

    (i.e. one unique of each duplicate record)

    And with the delete duplicates tool, I can get:

    1 1 1 1
    2 2 2 2
    1 1 2 2

    (i.e. one unique of each)

    Argh!!

    Thanks again nonetheless :D

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Removing Duplicates and Associated Unique Value

    Give us a sample workbook of your data so we can see why you think it is hard.

    A helper column for 5000 or 50000 rows is very simple if you know about autofill. Both take about 2 seconds to complete.

    Advanced filter will give unique and you don't want that. The helper column is the way to go.... IMHO.

  5. #5
    Registered User
    Join Date
    08-16-2011
    Location
    Mount Pearl, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Removing Duplicates and Associated Unique Value

    I don't know about auto fill! lol

    Any hints before I delve in??

    Thanks again,

    Andrew

  6. #6
    Registered User
    Join Date
    08-16-2011
    Location
    Mount Pearl, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Removing Duplicates and Associated Unique Value

    Hi Marvin,

    I noticed you use the COUNTIF function to compare the value with the rest in the column.

    Can you use a similar method to compare a record (e.g. unique row of values) to all other records?

    Thanks,

    Andrew

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Removing Duplicates and Associated Unique Value

    Yes, That is what countif does. Study up!

  8. #8
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,255

    Re: Removing Duplicates and Associated Unique Value

    In case you're interested, you can do this quite nicely with the advanced filter.

    Using Marvin's file as an example, put these values on the sheet:
    Please Login or Register  to view this content.
    Then select A1:A6, click on the advanced filter button and fill in the form as follows:
    • Action: Copy to another location
    • List Range: $A$1:$A$6
    • Criteria Range: $E$1:$E$2
    • Copy To: $H$1
    • Do NOT tick the "Unique Records Only" checkbox
    • Click OK
    H2 will be populated with 1212.
    Hope that helps,

    Colin

    RAD Excel Blog

+ 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