+ Reply to Thread
Results 1 to 10 of 10

Multiple column to multiple rows

  1. #1
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Multiple column to multiple rows

    Hello,

    I have a data in multiple rows and would like to transpose the data into multiple rows.

    Still trying to figure out the right vba code to do the job.

    in single row:

    1. data1 string1 string1-2 string1-3

    want the output

    1. data1 string1
    1. data1 string 1-2
    1. data1 string 1-3

    please find attached excel for more detail.

    Appreciate for any help.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Multiple column to multiple rows

    Assuming your data starts from row 1:
    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

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

    Re: Multiple column to multiple rows

    Alter Range("n1") to suite.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: Multiple column to multiple rows

    Hello,

    Thank you for both reply and help.

    tried the code.

    Millz code perfectly works.

    also tried jindon code, somehow not work properly and replace original list, i am not sure what is wrong, i just change n1 with a1.

    anyway, thank you again. i think the problem solved.

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

    Re: Multiple column to multiple rows

    What did you do?
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: Multiple column to multiple rows

    i see! i change the n1 to a1, so it replace the list,

    after check and tried your excel with code, it's working also !

    probably i missed to add code, that i want to put the result in a1 in another sheet.

  7. #7
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: Multiple column to multiple rows

    Just small question,

    what if i want to do the same task, but the data string1-1, string 1-2,string 1-3 ( in the same cell but separate by comma) ?

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

    Re: Multiple column to multiple rows

    Can you upload a workbook with what you have and what exactly you want for the result?

  9. #9
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: Multiple column to multiple rows

    Thank you for your prompt reply.
    here's previous file you have made, with small changes.
    the string is in single cell.

    also can you change the result to move to new sheet?
    also when move to new row, the data in column B, keep the format as text. not number.

    Appreciate for your help.
    Attached Files Attached Files

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

    Re: Multiple column to multiple rows

    Change to
    Please Login or Register  to view this content.

+ 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. Transpose multiple columns with multiple rows into one column
    By trizzle2131 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-22-2015, 12:28 PM
  2. Replies: 7
    Last Post: 05-05-2015, 09:13 AM
  3. Replies: 2
    Last Post: 06-14-2013, 10:01 AM
  4. Replies: 0
    Last Post: 09-26-2012, 10:33 AM
  5. Replies: 4
    Last Post: 07-03-2012, 08:01 PM
  6. Replies: 1
    Last Post: 01-25-2012, 04:29 AM
  7. How turn multiple columns/1 row into 1 column multiple rows
    By newbee.idiot in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-08-2010, 04:24 AM

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