+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Columns to rows

  1. #1
    Registered User
    Join Date
    11-16-2009
    Location
    Windy City
    MS-Off Ver
    Excel 2003
    Posts
    47

    Columns to rows

    Hello. Is it possible to sort numbers from columns to single column? For example:

    A1 = 3
    B1 = 4
    C1 = 5

    A2 = 5
    B2 = 6
    C2 = 8

    and so on.

    Is it possible to do it one row so it would look like this:

    A1 3
    A2 4
    A3 5
    A4 5
    A5 6
    A6 8

    Thanks for responses.
    Last edited by freehawk; 02-17-2010 at 01:05 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Columns to rows

    Hi Freehawk,

    In a free column, let's say F1, put the following formula:

    =OFFSET($A$1,INT((ROW(A1)-1)/3),MOD(ROW(A1)-1,3))

    Copy that down as many rows as needed. (For example, if you have 20 rows of data, A1:C1, A2:C2,.. A20:C20, then you'll need to copy this formula down 60 rows to F60.)

    You can then copy that range and use PasteSpecial -> Values on top of itself. Then delete columns A:C.

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Columns to rows

    I would suggest instead the non-volatile Index formula: =INDEX(A:C,(ROW()-1)/3+1,MOD((ROW()-1),3)+1), but if you're only doing this once, it shouldn't really matter.

  4. #4
    Registered User
    Join Date
    11-16-2009
    Location
    Windy City
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Columns to rows

    Thanks Guys, it works.

    I will mark it as solved.

    Thanks

+ 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