+ Reply to Thread
Results 1 to 5 of 5

Turning a list with duplicates into a unique list?

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    122

    Turning a list with duplicates into a unique list?

    Hopefully self explanatory title. I require a function that will look at a list of data in A2:A50 and remove all duplicates in the list. This unique list is to go in B2:B50.
    Data in row A changes all the time. Is this fairly simple to do?

    Thanks in advance for any advice.

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Turning a list with duplicates into a unique list?

    One way ...
    In B2: =IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"",ROW()))
    In C2: =IF(ROWS($1:1)>COUNT(B:B),"",INDEX(A:A,SMALL(B:B,ROWS($1:1))))
    Copy B2:C2 down to row 50. Hide col B. Col C auto-returns the list of uniques from col A, all neatly packed at the top
    ------------------------------------
    Success? Celebrate it, click the little star at the bottom left of my responses

  3. #3
    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
    53,048

    Re: Turning a list with duplicates into a unique list?

    Or perhaps this, in B2, copied down...
    =IFERROR(INDEX($A$2:$A$50,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$2:$A$50),0,0),0)),"")
    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

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Turning a list with duplicates into a unique list?

    Thank you to you both, most helpful, hope to return the favour some day.

  5. #5
    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
    53,048

    Re: Turning a list with duplicates into a unique list?

    Happy to help and thanks for the feedback

+ 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. [SOLVED] Remove duplicates to create list of unique values?
    By hulayogi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2013, 01:46 PM
  2. [SOLVED] Creating a unique list from a list of duplicates
    By ssu in forum Excel Programming / VBA / Macros
    Replies: 38
    Last Post: 04-29-2013, 08:19 AM
  3. Replies: 1
    Last Post: 04-19-2013, 02:25 AM
  4. [SOLVED] Extract an unique list from 2 different lists without duplicates
    By akalien in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-06-2012, 06:09 AM
  5. Macro to look for 'similar' duplicates and unique items and list them
    By HP RodNuclear in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2010, 07:25 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