+ Reply to Thread
Results 1 to 6 of 6

Moving columns into one row

  1. #1
    Registered User
    Join Date
    03-20-2007
    MS-Off Ver
    2007
    Posts
    66

    Moving columns into one row

    Hi all,

    Just wondering if someone can help me with the following.

    I want to move data in colums into one column with many rows, so if I have the following:

    A B C D E F G
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14

    I want to move all of this into:

    A
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    Can someone please help me in doing this.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Moving columns into one row

    If your source data are 7 columnes wide:

    =INDEX($A$1:$G$10,ROW(7:7)/7,1+MOD(ROW(7:7),7))

    where:
    $A$1:$G$10 is the table to be manipulated
    and all the 7s are replaced with the actual number of columns as apt.

    hth
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    03-20-2007
    MS-Off Ver
    2007
    Posts
    66

    Re: Moving columns into one row

    Hi,

    Struggling getting that to work.

    I have attached the spreadhseet I'm working on....would you be kind enough to show me how this works on it please.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Moving columns into one row

    Sure,
    Your source data are five columns wide - so:
    A7=INDEX($A$1:$E$5,ROW(5:5)/5,1+MOD(ROW(5:5),5))
    Copy down to A31
    hth

  5. #5
    Registered User
    Join Date
    03-20-2007
    MS-Off Ver
    2007
    Posts
    66

    Re: Moving columns into one row

    Hi,

    I get a circular reference error, could you possbily demonstrate this on spreadhseet please.

  6. #6
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Moving columns into one row

    1234567890
    Attached Files Attached Files

+ 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