+ Reply to Thread
Results 1 to 6 of 6

Create a unique list from a list of duplicated dynamically?

  1. #1
    Forum Contributor
    Join Date
    07-28-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Create a unique list from a list of duplicated dynamically?

    If I have a list like this:

    Blue
    Blue
    Red
    Blue
    Green
    Red
    Green
    Green
    Yellow
    Yellow

    Is there a way for me to make a list based on the values above that will only display the unique values? Making it look like this:

    Blue
    Red
    Green
    Yellow



    I want it to be dynamic, so if I throw in new colors to the first list, my second list will automatically update and include the new color.
    Last edited by Tommy1005; 01-12-2011 at 08:22 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Create a unique list from a list of duplicated dynamically?

    Try this

    Assuming your Data is in Column A beginning A2
    In B2
    Please Login or Register  to view this content.
    In C2
    Please Login or Register  to view this content.
    This is an array formula and must be confirmed with
    Ctrl+Shift+Enter, not just Enter

    Drag/Fill Both Down as required.

    Column B can be hidden.

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create a unique list from a list of duplicated dynamically?

    Here is solution without helper column:
    Attached Files Attached Files

  4. #4
    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 unique list from a list of duplicated dynamically?

    non array and much simpler same as marcol's above but
    in b2 put
    =IF(COUNTIF($A$2:A2,A2)=1,ROW(),"")
    in c2 put
    =IF(ROW(A2)>COUNT($B$2:$B$100),"",INDEX($A$2:$A$100,MATCH(SMALL($B$2:$B$100,ROW(A2)),$B$2:$B$100,0)))
    Last edited by martindwilson; 01-12-2011 at 08:09 AM.
    "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

  5. #5
    Forum Contributor
    Join Date
    07-28-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Create a unique list from a list of duplicated dynamically?

    ah.. that worked perfectly, thank you very much!

    I used what Marcol posted btw, it took a while but it worked

  6. #6
    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 unique list from a list of duplicated dynamically?

    I used what Marcol posted btw
    it took a while
    thats because its an array formula they do that! both the other solutions are non array and work quicker.

+ 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