+ Reply to Thread
Results 1 to 3 of 3

capture unique values from 1 column and populate the result into another column

  1. #1
    Registered User
    Join Date
    08-18-2008
    Location
    Los Angeles
    Posts
    44

    capture unique values from 1 column and populate the result into another column

    Hi, My problem is probably very easy for your guys, I just can't figure this out.
    I have values in COlumn A, probably about 50K rows, The total unique values on the column A is only about 27. I need to capture all those unique values and paste them in column B. I didn't want to do "Advance filtering" since the workbook has many macros's on it that the user simply click on. Im thingking of creating a loop and compare values already pasted in Column b but then that will take too much time to complete the loop. Is there any easier or yet more efficient way to accomplish this?.
    Last edited by teachMeExcel; 08-28-2009 at 05:20 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: capture unique values from 1 column and populate the result into another column

    Hello TeachMeExcel,

    This macro will find all the unique values in column "A" starting with "A2" and placing them in column "B" starting with "B2". This macro uses the Active Sheet. I didn't include any code to check for blank cells.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-18-2008
    Location
    Los Angeles
    Posts
    44

    Re: capture unique values from 1 column and populate the result into another column

    Leith R,


    Thank you very very much, It works like a charm. I'll give this a try on my very busy codes already

+ 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