如何在Excel中转​​置不同的列? [英] How to transpose varied columns in excel?

查看:67
本文介绍了如何在Excel中转​​置不同的列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多像上面的行.

下表是理想的结果.

我曾经使用过v-lookup,没有运气的数据透视表.

I had worked with v-lookup, pivot table with no luck.

有什么方法可以正确匹配不同的列?

Is there any way to correctly match varied columns?

推荐答案

如果您想从中获得帮助:

If you want to get from this:

...对此:

  1. 突出显示您的数据,然后按 CTRL + T 使其成为表格. (如您的示例,请检查我的数据有标题",如果没有标题,请取消选中它.)
  2. 数据选项卡上,单击从表/范围.这将打开PowerQuery.
  3. 您需要选择第一列以外的所有列,因此请单击第二列,然后按住CTRL并同时单击其右边的其他每个列.
  4. TRANSFORM 标签上,单击 UNPIVOT列.
  5. 点击屏幕右上方的 X ,然后点击"保持更改"
  1. Highlight your data and hit CTRL+T to make it into a table. (Check the "my data has headings" if there are headings, or un-check it if it does not, like your example.)
  2. On the DATA tab click FROM TABLE/RANGE. This will open PowerQuery.
  3. You need to select all columns EXCEPT for the first one, so click the 2nd column and then push and hold CTRL while you click each of the others to the right of it.
  4. on the TRANSFORM tab click UNPIVOT COLUMNS.
  5. Click the X in the top-right of the screen, and click "KEEP CHANGES"

您完成了!(...如此简单,它很有趣!)

You're Done! (...so easy that it's fun!)

  • 更多示例和指向更多详细信息的链接,位于我的其他答案 此处 .
  • li>

这篇关于如何在Excel中转​​置不同的列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆