+ Reply to Thread
Results 1 to 4 of 4

List sorting and rearranging

  1. #1
    Registered User
    Join Date
    05-08-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    List sorting and rearranging

    Ok so i havent programmed in excel before but Im trying to take a list and make it so it takes the list and sorts the list alphabetically and then breaks it up into columns for each letter (and numbers) so it does something like this:

    takes this:
    B
    D
    3
    D
    B
    A
    C

    Into:
    3
    A
    B
    B
    C
    D
    D

    and then into this:
    3 A B C D
    B D

    If there is already something like this then sorry, not sure where to start looking.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: List sorting and rearranging

    play around with
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    05-08-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: List sorting and rearranging

    ok and where would i go about putting this, I havent used macros before so not quite sure how to do this

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: List sorting and rearranging

    NightJumper,

    if you're starting out with VBA, this is probably not the easiest challenge to begin with.

    See this thread for links to VBA tutorials and resources

    http://www.excelforum.com/excel-work...additions.html

    You need to copy the code pike provided into a standard module in the VB Editor:

    - copy the code above, but start with the line below Sub testOne()
    - in Excel click Tools - Macro - Macros
    - enter testOne into the macro name box
    - click create
    - paste the code into the window that opens

    Now you can run the code via Tools - Macro - Macros

+ 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