+ Reply to Thread
Results 1 to 7 of 7

Function that will pull the unique values out of a column?

  1. #1
    Registered User
    Join Date
    10-25-2007
    Posts
    85

    Function that will pull the unique values out of a column?

    Hi, I was wondering of there was a way to take all the unique values out of a range of data and input them into another range.

    For example I'll have a list of 1-2000 in one column which can have up to 11 different values in it. These will not be numerical values mind you just 1-11 different words. What I need to do is have another column just populated by the unique values so that I can draw off that for other formulas in the sheet. I just want it to autopopulate when the user puts in their raw data.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    AdvancedFilter has both "unique only" and "copy to other location" options.

  3. #3
    Registered User
    Join Date
    10-25-2007
    Posts
    85
    Yea but that doesnt update when new information is put into the sheet, it just remains whatever it was before. At least from my testing that's what happened.

  4. #4
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    How about putting advanced filter code into a worksheet change event so every time the raw data in column a is updated advanced filter will filter unique values to column b.

    Please Login or Register  to view this content.
    Reafidy.

    Tip: When using code and disabling events/screen updates/calculation be sure to use an error handler to turn them back on if an error occurs.

  5. #5
    Registered User
    Join Date
    10-25-2007
    Posts
    85
    Ok, assuming the data i want filtered is in cells F5:F2005 and I want the output to start at F:2008 would this be the proper format for the code?

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    Looks okay to me what happened when you tried it?

  7. #7
    Registered User
    Join Date
    10-25-2007
    Posts
    85
    Nevermind, I seem to have it working now, thank you very much for the assistance
    Last edited by Rgaherty; 11-13-2007 at 09:31 AM.

+ 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