1

I have a spreadsheet that looks like this:

enter image description here

I want to automatically transform it to this:

enter image description here:

I know I can transpose it using this Window:

enter image description here

But the result is like this:

enter image description here

How can I get what I described?

1 Answers1

4

You are trying to "unpivot" the data, as described in this question.

  1. In your case, you'll need to add an extra column so the unpivot process works properly:

    extra column

  2. Press Alt+D then P to start the Pivot Table and Pivot Chart Wizard.

  3. Select Multiple consolidation ranges and PivotTable:

    Step 1 of 3

  4. Select I will create the page fields:

    Step 2a of 3

  5. Specify the worksheet range:

    Step 2b of 3

  6. Specify the destination as New worksheet and then Finish.

    Step 3 of 3

  7. You'll now be presented with a new worksheet (that doesn't look very much like the data you want... yet):

    Intermediate result

  8. Now comes the magic - double-click on the cell I've highlighted in red - the intersection of the grand totals and you'll get a new worksheet containing your original data the way you want.

    Final result