I'm stupid - Pivot source data with multiple columns, want columns in rows

YoBub

New Member
Joined
Nov 10, 2018
Messages
2
Excel 2016. I have source data for a pivot table across multiple columns. The first column is a date, the subsequent columns are teams, and the values are a count of faxes a team processed, for each day.

I'm trying to create a pivot table in which the dates appear across the top, summarized by month (I've got this) and the total for faxes handled by each team each month runs in rows down the left side.

I've worked with pivot tables extensively and I know I'm just being stupid, but I can't figure out how to make this work. Sleep deprivation. This is killing me.

The source data is 2 years daily across 14 teams, but here is a summary example.

What I have
DateTeam ATeam BTeam C
1/2/20171138
1/3/2017321026
1/4/2017242126
2/1/2017351019
2/2/2017352022
2/3/2017481720
2/4/2017421
What I want
Jan-17Feb-17
Team A67122
Team B3449
Team C6062

<colgroup><col span="4"></colgroup><tbody>
</tbody>

Each time I try to lay this out, I either get nested subtotals across the top, or I get values in the left column, instead of team names.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You will need to unpivot your data table as shown below. This can be accomplished using Power Query (Get and Transform) in 2016. Once you have the data in this form, then you can build a Pivot Table.

Data Range
A
B
C
D
E
F
G
H
1
Date​
Team​
Value​
2
1/2/17​
Team A​
11​
Sum of Value​
Column Labels​
3
1/2/17​
Team B​
3​
Row Labels​
Jan​
Feb​
4
1/2/17​
Team C​
8​
Team A​
67​
122​
5
1/3/17​
Team A​
32​
Team B​
34​
49​
6
1/3/17​
Team B​
10​
Team C​
60​
62​
7
1/3/17​
Team C​
26​
8
1/4/17​
Team A​
24​
9
1/4/17​
Team B​
21​
10
1/4/17​
Team C​
26​
11
2/1/17​
Team A​
35​
12
2/1/17​
Team B​
10​
13
2/1/17​
Team C​
19​
14
2/2/17​
Team A​
35​
15
2/2/17​
Team B​
20​
16
2/2/17​
Team C​
22​
17
2/3/17​
Team A​
48​
18
2/3/17​
Team B​
17​
19
2/3/17​
Team C​
20​
20
2/4/17​
Team A​
4​
21
2/4/17​
Team B​
2​
22
2/4/17​
Team C​
1​
23

<tbody>
</tbody>

Open you existing file and click on Data, Get and Transform, From Table. Click on the right three columns. Right click and select Unpivot. Go to the Home Tab in PQ and click on Load and Close. Now you will have your normalized table in a form in which you can build your pivot table. If you are running 2010 or 2013, you can download Power Query for free from Microsoft. It is the way of the future.
 
Last edited:
Upvote 0
Yup, that 100% worked!!! I've never used any of that functionality, so I guess that's the difference between an intermediate user and and expert.

Thanks so much for your help!
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,122,998
Members
449,092
Latest member
masterms

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top