• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Re-ordering a Table

clumpa

Member
I have a table with a header (row 1) containing names and each column contains data generated elsewhere in the work book.
What I would like to do is create, using formulae, a new version of the table where the order of the header is different and the data under each name is in the same order

A B C
1 2 3
4 5 6
7 8 9
generated table to be

C A B
3 1 2
6 4 5
9 7 8

Should be easy but I have no idea!!
 
Assuming your original data is in Sheet1!A1:C4, and the new order of headers is a manual input on Sheet2, formula would be:
=HLOOKUP(A$1,Sheet!$A$1:$C$4,ROW(),FALSE)
 
Back
Top