How to rotate excel data
This is a general question that just popped into my head that I have always wondered. There have been several times when I've needed to rotate data in Excel, for example:
Starting with:
| A | B | C |
----------------------
1 | ABC | DEF | GHI |
----------------------
2 | omg | 开发者_Python百科lol | xyz |
----------------------
3 | | | |
----------------------
transform into:
| A | B | C |
----------------------
1 | ABC | omg | |
----------------------
2 | DEF | lol | |
----------------------
3 | GHI | xyz | |
----------------------
I have never found a reasonable way to do this. Solutions I can think of right now are:
- Write a macro (yuck)
- Manually copy / paste (yuck)
- Maybe some pivot table magic? (i doubt this would be possible)
- Clever formulas using
INDEX
Are there other solutions, maybe some hidden built-in feature?
- Copy your grid
- Edit ▸ Paste Special...
- Check the "Transpose" checkbox
- Click "OK"
Use of the TRANSPOSE() function
Transposing rows and columns?
See:
http://office.microsoft.com/en-us/excel-help/rotate-data-by-converting-columns-to-rows-or-vice-versa-HP005203138.aspx
Construct a pivot table from the data then you can transpose and do a lot more besides (filter, group etc)
精彩评论