简体   繁体   中英

Excel columns to multiple rows

I have a set of data that consists of a product SKU, and then the sizes as multiple columns. I need to transpose this data to list the sizes in one column (which I can do) but, each size needs to list the SKU as well which is something I can't seem to achieve with transpose. See images for an example.

我在追求什么

Follow these steps...

1

Click on a cell to the right of your data.

On the keyboard press Alt and then while holding Alt down, press D and let go.

Now press P on the keyboard.

The ancient PivotTable Wizard should now be displayed.

2

Select Multiple Consolidation Ranges . Click on the Next button.

3

Select I will create the page fields . Click on the Next button.

4

For the Range field at the top of the dialog, select the range A1:J6. (This is your sample data.) Click on the FINISH button.

5

You will now see a PivotTable. You are going to double-click one particular cell... and this will create a new worksheet with your data transposed and normalized. That cell is the bottom-right cell of the PivotTable (at the intersection of Grand Total and Grand Total). Double-click it.

6

On the new sheet that is now displayed, delete column B and click on the little arrow in cell B1. Uncheck (Blanks) and click OK.

That's it. It seems like a lot, but it's not. It takes just a couple of seconds once you get used to it. And you can go ahead and delete the PivotTable now. And you can copy your normalized data out of the filtered rows and paste wherever you like... and then just delete that temporary sheet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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