Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Transpose?

Status
Not open for further replies.

truitt20

Technical User
Dec 10, 2004
74
0
0
US
I have data formatted in excel like the below:


a b c
xxx 10 20 60
yyy 30 10 20
ttt 40 5 15
vvv 50 70 30


And I would like to automatically get the data formatted in another worksheet like this via formula or some other auto means:


xxx 10 a
xxx 20 b
xxx 60 c
yyy 30 a
yyy 10 b
yyy 20 c
ttt 40 a
ttt 5 b
ttt 15 c
vvv 50 a
vvv 70 b
vvv 30 c

Any help would be much appreciated!

thanks
 
Normalize your table with pivot table, see faq68-5287 by Skip Vought.
Alternatively use formulas:
- in column A add numbers: 1, 2, 3... etc. (helper column),
- using MOD and INT functions convert numbers into sequence of data rows (1, 1, 1, 2, 2, 2, 3...) and columns (1, 2, 3, 1, 2, 3...),
- in column B using row index pick value from row headers table (INDEX function),
- in column C using column index pick value from column headers table (INDEX function),
- in column D using row & column index pick value from data table (index function, two arguments).




combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top