+ Reply to Thread
Results 1 to 6 of 6

Move Multiple-Column Data to One Column (not Transpose)

  1. #1
    Registered User
    Join Date
    05-02-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Move Multiple-Column Data to One Column (not Transpose)

    Greetings. Using Excel 2010. I have 100 customer orders running across 100 columns. Each order has 4 rows of data. I want to maintain the data being in rows but I would like to eventually export/copy+paste one long list to Word or similar. Example:

    CURRENTLY
    A1 B1 C1 D1 etc.
    A2 B2 C2 D2
    A3 B3 C3 D3
    A4 B4 C4 D4

    DESIRED
    A1
    A2
    A3
    A4

    B1
    B2
    B3
    B4

    C1
    C2
    C3
    C4

    D1
    D2
    D3
    D4

    etc.

    Any suggestions?
    Eric
    Last edited by CriticalEric; 05-03-2011 at 09:42 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Move Multiple-Column Data to One Column (not Transpose)

    If you want a space between sets then add a row below all your data with a space (spacebar) in each cell across the row.... then try:

    =INDEX($A$1:$D$5,MOD(ROWS($A$1:$A1)-1,5)+1,CEILING(ROWS($A$1:$A1),4)/4)

    adjust A1:D5 range to suit

    copied down

    If you don't want the space between groups, change the 5 to a 4 and don't include blank last row in the reference range.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-02-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Move Multiple-Column Data to One Column (not Transpose)

    NBVC -- Thank you for the quick reply! I tested this out and my colleague asked me to expand it for more than four rows - I am not familiar with these sort of Index-Mod-Ceiling combinations and was unable to expand the formula correctly. Can you show an alternative for 15 rows of data? Below is your original formula that would allow for four lines....

    =INDEX($A$1:$D$5,MOD(ROWS($A$1:$A1)-1,5)+1,CEILING(ROWS($A$1:$A1),4)/4)

    Regards,
    Eric

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Move Multiple-Column Data to One Column (not Transpose)

    assuming you still want a blank row between groups, then again in the 16th row enter space in each of the cells and then try:

    =INDEX($A$1:$D$16,MOD(ROWS($A$1:$A1)-1,16)+1,CEILING(ROWS($A$1:$A1),16)/16)

  5. #5
    Registered User
    Join Date
    05-02-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Move Multiple-Column Data to One Column (not Transpose)

    Quote Originally Posted by NBVC View Post
    assuming you still want a blank row between groups, then again in the 16th row enter space in each of the cells and then try:

    =INDEX($A$1:$D$16,MOD(ROWS($A$1:$A1)-1,16)+1,CEILING(ROWS($A$1:$A1),16)/16)
    You're the best I was over-thinking when trying to adapt your formula.

    Kind Regards,
    Eric

  6. #6
    Registered User
    Join Date
    07-09-2008
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    91

    Re: Move Multiple-Column Data to One Column (not Transpose)

    this works perfectly!

+ 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