+ Reply to Thread
Results 1 to 9 of 9

automatically extract unique values from a list

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    78

    automatically extract unique values from a list

    Say I have a list of items which self-repeat. E.g. column A will contain dog,dog,dog,cat,elephant,cat and the list will continue being added to.

    How can I develop another column which will automatically add unique values from that list to itself? I know how to extract unique items but not automatically update them given a changing column A which is continually added to.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: automatically extract unique values from a list

    try in worksheet module.

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: automatically extract unique values from a list

    Thanks for the rep.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: automatically extract unique values from a list

    Here's a formula method...

    Data Range
    A
    B
    C
    1
    Items
    -----
    Unique Items
    2
    dog
    dog
    3
    dog
    cat
    4
    dog
    elephant
    5
    cat
    6
    elephant
    7
    cat
    8
    9
    10


    First, create a dynamic named range...

    Goto the menu Insert>Name>Define
    Name: Items
    Refers to: =$A$2:INDEX($A:$A,MATCH("zzzzz",$A:$A))
    OK out

    Then, enter this array formula** in C2:

    =LOOKUP("zzzzz",CHOOSE({1,2},"",INDEX(Items,MATCH(0,COUNTIF(C$1:C1,Items),0))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down to enough cells that will extract the new items as they are added in column A. How many cells that is only you would know!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-01-2011
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: automatically extract unique values from a list

    Please Login or Register  to view this content.

    I'd like to make this into a manual code where I can assign to to an 'update' button. I'm not too sure how.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: automatically extract unique values from a list

    Are you using Excel 2003 as your profile indicates?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: automatically extract unique values from a list

    You might also be interested in this thread...

    http://www.excelforum.com/excel-prog...pty-cells.html

  8. #8
    Registered User
    Join Date
    09-01-2011
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: automatically extract unique values from a list

    excel 2007

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: automatically extract unique values from a list

    In Excel 2007...

    Goto the Developer tab.

    If the Developer tab is not visible...

    Click the Office button>Excel Options>Popular
    Select: Show Developer tab in the Ribbon
    OK out

    On the Developer tab...
    Select: Insert
    In Form Controls, click the button icon

    Navigate to where you want the button to appear.

    Click and hold the left mouse button and drag to "draw" the button.

    When you are done and release the mouse button a menu should appear so that you can select the macro of interest and attach it to the button.

    Select the macro then click OK.

    Right click the button and select Edit Text. Enter the caption that you want the button to display. Select any cell to finish.

+ 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] Extract unique values from a table and list along a row
    By doctorblyth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2013, 04:33 PM
  2. Pull Unique Values from a List and Automatically Sort in Alphabetical Order
    By Aimee S. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 09:43 AM
  3. [SOLVED] Extract Unique Values from Long list and Put in Sorted Order
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-08-2013, 09:10 PM
  4. [SOLVED] Extract unique values out of list based on an extra criteria
    By sven1975 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 05:02 AM
  5. Extract Unique Values, Then Extract Again to Remove Suffixes
    By Karl Burrows in forum Excel General
    Replies: 23
    Last Post: 06-25-2005, 08:05 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