[EXCEL] Transform rows into columns

Solved
Hello,

I am looking to transform rows from my Excel spreadsheet into columns.

I tried using the TRANSFORM() function in array form, but it only partially addresses my issue.

1) There is no linkage between the cells. So if I modify the original cell(s), the "transformed" cell(s) do not change.

2) If I add data to my original table, I cannot perform "incremental copying" in my transposed table.

I hope I have been clear enough and that I haven’t gotten too mixed up. Since this is my first post, I hope I have been clear.

Thank you in advance everyone

Logan

small example

 Original table A B C 1 10.9943 10.983975 10.983325 Transposed table D 1 10.9943 2 10.983975 3 10.983325
Configuration: Windows XP Firefox 2.0.0.11 Excel 2003

11 answers

  • Votes
  • Date
  • Descending date
  1. Hello,

    to transpose rows to columns and vice versa very simply (if I understood the basic question correctly):

    select your table, copy.

    In another place (another sheet, for example): edit/special paste: check transpose, click ok.

    it should work.
    1. Yeah, true, but that doesn’t solve the question of the link between the values before and after transposition...
    2. I tried, it's perfect!
      Thank you very much
    3. Does not work in Excel 2007.
    4. a big thank you to you,
    5. Extraordinary! You've changed my life ;-)
  2. to take the origin of the post with a few modifications

    small example

    Original table
    A B C D
    176 177 178
    Julien 10 20 30
    Aurélien 30 40 50
    Benjamin 60 70 80

    Transposed table in Sheet2
    A B C
    Julien 176 10
    Julien 177 20
    Julien 178 30
    Aurélien 176 40
    Aurélien 177 50
    Aurélien 178 60
    Benjamin 176 70
    Benjamin 177 80
    Benjamin 178 90

    Thank you for your response

    PS how can we post a .xls document?

    1. Great! I struggled for an hour when it was so simple...
      Thank you
  3. uh ....
    it seems all pretty complicated ....
    I don't know anything about it .... :):):)
    Is there a simpler method ????
    like with functions ....
    because this looks like programming and I totally don't master that
    maybe I posted in the wrong forum
    thank you again to those who responded and to those who will respond
    1. Hello
      I am interested in this little program but I can't get it to work despite strictly copying it and adapting the data. Can you help me?
      1. Hi,
        To answer your question, DSUM is a function in Excel - like Sum().
        So you use it without anything else.
        Take care.
    2. Hello
      I am looking to download Excel, but where should I go?
      If anyone has an idea, thank you in advance, Marc.
      1. Well, buy it!
      2. You might as well use the free alternatives; you have the choice between Open Office, Libre Office, and IBM Lotus Symphony. It’s smarter than pirating.
      3. Learn to write. Also, buy Word.
      4. There is no "s" in the verb "acheter" conjugated in the 2nd person of the imperative, dear kukuxu.
      5. @marieActually, yes, it all depends on when you learned it in school; 50 years ago, my father learned it like that. Moreover, according to "Le Conjugueur," that's actually how "Apprendre" is conjugated in the 2nd person singular, in the imperative ;)
    3. Hello
      Phil 32, your program doesn't work on my Excel sheet
      So how should I program it?
      Thank you for getting back to me
      1. Sub Transpose()

        Dim Col As Range

        For Each Col In Range("Transpose").Columns
        Col.Copy Destination:=Worksheets("Sheet2").Range("A" & Col.Row)
        Next

        End Sub
        1. Could you provide more information, please? Because right now, I'm not sure I understand your response...
          1. You go to Insert --> Name --> Define to define a range
            For Each Col In Range("Transpose").Columns ' Logically here we "walk" from cell to cell from the beginning to the end.
            Col.Copy Destination:=Worksheets("Sheet2").Range("A" & Col.Row) ' Sorry, I didn't see that we copy each column to the first column (i.e. "A")
            that is a range B3, C3, D3. B3 is the first column of the range.
            content of cell B3 --> A1
            content of cell C3 --> A2
            content of cell D3 --> A3

            of course you have to adapt this code to your needs
            1. Have you tried
              " =INDEX($a$1:$ZZ$30,COLUMN(A1),ROW(A1)
              ) "?
              You need to adjust the source table and the reference cell as needed, but it at least links the original table to the starting table as requested in the initial question. (instead of messing around with macros)
              1. There is a method, but you need to install MATLAB first.
                First, copy the matrix into MATLAB
                then
                name a matrix
                e.g.:
                m1=[matrix xl]
                then m1'
                copy the result into Excel.
                1. I don't understand what you mean. Could you go into more detail? I don't know how Mathlab works.