Closed Thread
Results 1 to 12 of 12

Converting a matrix into a single column

  1. #1
    Registered User
    Join Date
    05-05-2008
    Posts
    7

    Converting a matrix into a single column

    Hi,

    I need a macro that allows me to select a matrix of cells and converts it into a single column elsewhere, pasting the second column below the first and so on. Is it possible to select the matrix, hit a macro key and then paste it in my selected location? Thanks so much

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552
    try
    Please Login or Register  to view this content.
    Code edited
    Last edited by jindon; 05-05-2008 at 10:38 PM.

  3. #3
    Registered User
    Join Date
    05-05-2008
    Posts
    7

    Matrix to a single column2

    Thanks for that. However its not exactly what I mean. I guess my querry was vague.
    It may only be possible to copy a matrix, then select a cell where the output is to be pasted, and then hit the macro button. This pastes the output from the matrix in a single column. Thanks

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-05-2008
    Posts
    7
    Wow you are very fast. Thanks heaps. It almost works. I can take a single column but not a matrix. Some syntax error.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You want the columns of the matrix to appear one below the other, in a single column?

  7. #7
    Registered User
    Join Date
    05-05-2008
    Posts
    7
    Pretty much. First column of the matrix on the top, the second column of the matrix below the first column as so forth.

    1 11 111
    2 22 222
    3 33 333

    into


    1
    2
    3
    11
    22
    33
    111
    222
    333

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Maybe like this:
    Please Login or Register  to view this content.
    Last edited by shg; 05-06-2008 at 06:04 PM.

  9. #9
    Registered User
    Join Date
    05-05-2008
    Posts
    7
    You're a legend. Thanks so much. It works

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You're welcome, glad it worked for you.

  11. #11
    Registered User
    Join Date
    11-21-2008
    Location
    Kansas City, MO
    Posts
    1

    column to matrix

    Could you help me do the exact opposite? I'm looking at a column several hundred rows long, and would like to see it in several smaller columns if possible.
    For example.
    a
    b
    d
    e
    f
    g
    h
    i
    j

    to

    a d g j
    b e h
    c f i

    Optimal column length would be 21, but somehow having this as a option to chose from would be steller.

    Thanks

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    ced,

    Welcome to the forum.

    Please take a few minutes to read the Forum Rules about posting questions in other people's threads (and in general), and then start your own thread.
    Entia non sunt multiplicanda sine necessitate

Closed 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