Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Excel - Rows to Columns

  • 09-03-2012 10:37am
    #1
    Registered Users, Registered Users 2 Posts: 84 ✭✭


    Hi,

    If I have a set of data formatted with data spread over 7 columns like this:
    1  2  3  4  5  6  7
    8  9  10 11 12 13 14
    15 16 17...
    

    Would anyone know how to turn this into one continuous column of data without manually copy/pasting or retyping the data out?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    ...
    

    Thanks


Comments

  • Closed Accounts Posts: 5,064 ✭✭✭Gurgle


    Select Row-> Copy -> Click top cell of destination column -> Right Click -> Paste Special -> Transpose
    -edit- oh, that won't be so easy as your data is in multiple rows and columns.


  • Registered Users, Registered Users 2 Posts: 84 ✭✭OldManJenkin


    I found that option by searching, but as you said, it doesn't work for mutiple columns/rows :(.


  • Registered Users, Registered Users 2 Posts: 44 TheNewMe


    Try this

    =INDEX($K$12:$Q$19,FLOOR((ROW(A1)-1)/7,1)+1,MOD(ROW(A1)-1,7)+1)

    K12:Q19 defines the array, 7 is the length and width of the 2D array and this equation pulls out the first value. Just drag it down vertically and it should give you the full 2D array unrolled into a single 1D vector.


  • Registered Users, Registered Users 2 Posts: 84 ✭✭OldManJenkin


    Thanks very much, worked brilliantly!
    Very clever formula!


  • Closed Accounts Posts: 1,620 ✭✭✭_AVALANCHE_


    TheNewMe wrote: »
    Try this

    =INDEX($K$12:$Q$19,FLOOR((ROW(A1)-1)/7,1)+1,MOD(ROW(A1)-1,7)+1)

    K12:Q19 defines the array, 7 is the length and width of the 2D array and this equation pulls out the first value. Just drag it down vertically and it should give you the full 2D array unrolled into a single 1D vector.
    tumblr_lzxdysF4dk1qjmo7o.gif


  • Advertisement
Advertisement