This question already has an answer here:

I am looking for a tool to flip the rows and columns of a tablular table.

For example

       1 & 2 & 3 \\
       4 & 5 & 6

should become

       1 & 4 \\
       2 & 5 \\
       3 & 6

This is possible using TeXlipse. I would however prefer a simpler solution with less overhead.


  • it should run on Linux, however an online solution would be acceptable too if there is one, and
  • whatever possible in cells is conserved (comments for instance)

marked as duplicate by Peter Grill, cfr, Andrew Swann, Svend Tveskæg, Mico tables Nov 9 '14 at 19:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Welcome to TeX.SE. If the linked question above does not answer your question please edit the question and explain why. Otherwise we'll close this question as a duplicate. Also, for future reference while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Nov 9 '14 at 19:21
  • Yes, this is a duplicate. You can close it. – skew41 Nov 9 '14 at 19:39

Browse other questions tagged or ask your own question.