+ Reply to Thread
Results 1 to 4 of 4

need help!! sort multiple rows into single column

  1. #1
    Registered User
    Join Date
    12-27-2015
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    6

    need help!! sort multiple rows into single column

    Hi,

    I am using excel 2010 and windows.
    can anyone help translate using VBA code.
    thank you.

    here is some example data
    description header1 header2 header3 header4 header5
    test 2 8 9 69 47
    trial 1 5 99 102 1010
    fry 3 5 4 7 10

    result that I want is
    Description value
    trial 1
    test 2
    fry 3
    fry 4
    fry 5
    trial 5
    fry 7
    test 8
    test 9
    fry 10
    test 47
    test 69
    trial 99
    trial 102
    trial 1010

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: need help!! sort multiple rows into single column

    You could use this code that read data in the first sheet and copy and sort them in the second sheet:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: need help!! sort multiple rows into single column

    Assuming header starts from A1 and no blank row(s)/column(s) in data range.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-27-2015
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    6

    Re: need help!! sort multiple rows into single column

    thanks both of you for your helps.

    both code are working and really appreciate it.

+ 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. Replies: 9
    Last Post: 11-11-2015, 08:19 PM
  2. Transpose Multiple Rows into a Single Column
    By vnascimento in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2013, 08:47 AM
  3. Sort first column of multiple workbooks from a single directory
    By lmolokin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2012, 05:15 PM
  4. Replies: 0
    Last Post: 09-26-2012, 10:33 AM
  5. [SOLVED] Importing CSV file into single column/multiple rows vs. multiple rows/single column
    By bjorgenson@charter.net in forum Excel General
    Replies: 4
    Last Post: 07-03-2012, 08:01 PM
  6. Turn multiple rows into a single column
    By mckaa302 in forum Excel General
    Replies: 5
    Last Post: 05-26-2012, 08:08 PM
  7. Replies: 5
    Last Post: 02-07-2012, 04:55 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