由于您的屏幕截图对于将数据复制到测试表毫无用处,因此我使用了我认为有效的简化版本,其中每行只有一个条目,但每列有多个条目。
从中可以得到:

更改为:

您可以Power Query
在 Excel 2010+ 中使用(作为 Microsoft 的免费插件)。也可以Get&Transform
在 Excel 2016+ 中使用。
- 选择列
Card
Unpivot other columns
- 选择列
Attribute
(执行 Unpivot 时将创建)
Pivot
带有值列 =Value
和高级选项 =Don't Aggregate
