简体   繁体   English

Excel 2010取消数据透视或使用MySQL取消透视

[英]Excel 2010 Unpivot Data or Utilize MySQL for Unpivot

I've got a lot of data in an Excel sheet that I need reformatted. 我需要重新格式化Excel表格中的大量数据。 I am trying to achieve this by using Pivot Table but I'm not sure it is possible. 我正在尝试通过使用数据透视表来实现此目的,但是我不确定是否有可能。

Here is current data set (SKU is unique currently): 这是当前数据集(SKU当前是唯一的): 当前Excel工作表

I need it to look more like this (where SKU is NOT unique): 我需要它看起来像这样(SKU不是唯一的): 需要新的Excel工作表

I'm willing to throw my current sheet into a MySQL database and query it if I can figure out a good query to utilize as well. 如果我能找到一个很好的查询来利用,我愿意将当前的工作表放入一个MySQL数据库中并对其进行查询。

Any ideas on where to go from here would be appreciated. 关于从这里出发的任何想法将不胜感激。

It looks like you're wanting to unpivot your data (ie turn it from a crosstab into a flat file), although some of your desired output looks weird. 尽管您所需的某些输出看起来很奇怪,但您似乎想取消数据的显示(即将其从交叉表转换为平面文件)。 Look at my answer to this question: convert cross table to list to make pivot table 看看我对这个问题的回答: 将交叉表转换为列表以制作数据透视表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM