Specific Transpose in Excel

梦想与她 提交于 2020-01-07 12:01:05

问题


I would like to do the opposite of what this person wants to do.

Specific transpose in Excel 2010

Transpose backwards in effect.

It would be nice to have a "how to do the opposite/reverse" button on stackoverflow.

In the mean time I will be trying to reverse the code given as a solution to the question asked.


回答1:


I set up the data like below:

In column E, I just auto-filled numbers until I reached the highest number in Column A. Then I used the following formulas in the cells indicated and auto-filled down from there.

F5:

=OFFSET($B$1,(($E5-1)*3+0),0)

G5:

=OFFSET($B$1,(($E5-1)*3+1),0)

H5:

=OFFSET($B$1,(($E5-1)*3+2),0)

The *3 should reflect the number of categories you have (here: brand, color, price). To add additional columns, just keep increasing the number that's added immediately after *3 in each category column.

I should note, this is only going to work if your data really is just like the example, with consecutive numeric identifiers for each item starting at 1.



来源:https://stackoverflow.com/questions/24956111/specific-transpose-in-excel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!