+ Reply to Thread
Results 1 to 6 of 6

Make data list and copy from a list

  1. #1
    Registered User
    Join Date
    01-07-2009
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    27

    Make data list and copy from a list

    Hi all,

    I have a list of names in column A, don't know how many different names but for sure some of them repeats in different cells of column A.

    A1 = NAME_1
    A2 = Alan
    A3 = Ben
    A4 = John
    A5 = Alan
    A6 = Kevin
    A7 = Mark
    A8 = Dominic
    A9 = John
    A10= Tom
    A11=Alan
    A12=Frank
    .
    .
    .

    How can I make aonther list in column B, which contains a list of name in column A without repeating. So that B1 = NAME_2, B2:B4 is exactly like A2:A4, then B5 = Kevin, B6 = Mark, B7 = Dominic, B8 = Tom, B9 = Frank.... and so on.

    Another question, which is very similar to the previous one. In the same column A, now I add an AutoFilter (Data > Filter > AutoFilter) in A1. A drop down arrow button will appear at the right side within A1. Click the down arrow and another box shows: Sort Ascending, Sort Descending, All, Top 10, Custom, Alan, Ben.... the rest of the data in Column A but each unique data will only shows once in that list. How can I copy the contents of that box?

    My thanks in advance.
    Last edited by codepin; 03-19-2009 at 05:28 AM.

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

    Re: Make data list and copy from a list

    When you autofilter it copy just as anything else (select -> Ctrl+C) and paste (Ctrl+V)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Make data list and copy from a list

    Not sure where this macro came from, but it's in my .bas catalog:
    Please Login or Register  to view this content.
    Put that macro into a standard module.

    To use it, first, highlight your names in column A and activate the macro, it will ask you to highlight the column you want to put the new values into.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    01-07-2009
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Make data list and copy from a list

    Quote Originally Posted by zbor View Post
    When you autofilter it copy just as anything else (select -> Ctrl+C) and paste (Ctrl+V)

    Hi Zbor,

    Sorry, I'm not sure what you mean. My first thread has 2 questions and they have no relation to each other. Q1 is how to make a list in column B, which contains each unique data in column A without repeating. Q2 is in case of an autofilter, how can I copy the data inside the autofilter drop-down box except the Sort Ascending / Sort Descending / All / Top 10 / Custom, and paste it somewhere (because that list inside the drop-down box is exactly the unique data list of column A, similar to my Q1).

    My English is not very good but what my understanding is, you are replying my Q2, that it cannot be done. Kindly let me know if I'm wrong, many thanks.


    Quote Originally Posted by JBeaucaire View Post
    Not sure where this macro came from, but it's in my .bas catalog:
    Please Login or Register  to view this content.
    Put that macro into a standard module.

    To use it, first, highlight your names in column A and activate the macro, it will ask you to highlight the column you want to put the new values into.

    Hi JBeaucaire,

    Thanks for your reply. But the file is not just for myself as this is used for many others. Our excel skill level varies and my boss prefers not to use any macros for everyone of us sake (and of course for his sake). Any other suggestion, please?

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Make data list and copy from a list

    Crikey...

    1st question:
    Select column A data, go to Data-> filter -> advanced filter
    You want to copy unique values only to another place ->B1

    easy peasy!

    I think this negates the second question(?) If not, please could you clarify that one?

    HTH

  6. #6
    Registered User
    Join Date
    01-07-2009
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    27

    Thumbs up Re: Make data list and copy from a list

    Quote Originally Posted by Cheeky Charlie View Post
    Crikey...

    1st question:
    Select column A data, go to Data-> filter -> advanced filter
    You want to copy unique values only to another place ->B1

    easy peasy!

    I think this negates the second question(?) If not, please could you clarify that one?

    HTH
    Hi Cheeky Charlie,

    YYYYYEEEEESSSSS!!!!! You have my full salute, many thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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