+ Reply to Thread
Results 1 to 8 of 8

Create a list of unique entries based on several columns

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    21

    Create a list of unique entries based on several columns

    https://www.dropbox.com/s/2k218jhud69lpsn/Book1.xlsx

    In that file, you can see there is a list of somewhat similar data across 5 columns. Some of the entries are duplicates, some are different by only one character. What I want to be able to do is generate a list of all the unique rows of data, taking into account the data from ALL 5 columns. The list can be on another sheet or simply just further down on the same sheet, that doesn't matter too much.

    I could do it if it were just one column of data, but struggling trying to do it with several columns.

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Create a list of unique entries based on several columns

    Use an advanced filter. There is an option to select unique data. You can filter in place or to another location.

    http://www.dummies.com/how-to/conten...xcel-2013.html
    My approach to providing help is to help you to help yourself. So my answers won't always solve your problem, but hopefully you can learn enough to solve the problem yourself and be more self sufficient for the experience.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Create a list of unique entries based on several columns

    It's best to place your attachment right here on this forum so I haven't looked at your file

    However, take column F & concatenate columns A-E and then in column G...

    =COUNTIF($F$2:F2,F2) >> copied down

    filter for 1's and those are the uniques

    Note: 2007 even has a built in Remove Duplicates >> Data >> Data Tools >> Remove Duplicates
    Last edited by jeffreybrown; 07-27-2013 at 06:32 PM.
    HTH
    Regards, Jeff

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Create a list of unique entries based on several columns

    This is probably not an option, but could you copy/move each column into 1 column, and then use "remove duplicates"?

    On a side-note, please dont upload files to file-hosting sites like dropbox, not all members can access them (company firewalls and stuff), rather, upload them here...
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Create a list of unique entries based on several columns

    Why not just select the data then click on the Data tab, Remove Duplicates? If you still need the original data, select the data before removing duplicates and copy to another location. Then, remove the duplicates....quick and easy with no formulae or coding.
    <---------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

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Create a list of unique entries based on several columns

    That wont remove duplicates if something else in that row is different to another row (already tried that)

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

    Re: Create a list of unique entries based on several columns

    The asker did want a list of all "unique" rows.

    That wont remove duplicates if something else in that row is different to another row (already tried that) .... in that case the rows are not duplicates as I understand the term "duplicate" but are "unique". I wonder what it is that he really wants. Is he getting columns and rows mixed up?

    Jeffreybrown's formula is interesting in this context in that it eliminates all rows that have been duplicated leaving only rows that never had a duplicate.

    An example of expected output certainly would take the guess-work out of this.

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

    Re: Create a list of unique entries based on several columns

    another way in g4 =SUMPRODUCT(--(INDEX($B$3:B4&$C$3:C4&$D$3:D4&$E$3:E4&$F$3:F4,0)=B4&C4&D4&E4&F4)) filter on 1
    "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

+ 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. How do you create a unique list from multiple same named entries?
    By john dalton in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-08-2013, 03:57 AM
  2. Replies: 2
    Last Post: 02-22-2013, 07:16 AM
  3. VBA: Create unique list based on latest entry in list
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-08-2011, 09:55 AM
  4. create list of unique entries
    By statachris in forum Excel General
    Replies: 1
    Last Post: 06-17-2009, 11:45 AM
  5. [SOLVED] Need to create unique list from list of multiple entries
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2005, 01:05 AM

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