PivotTable with multiple row and column headings

alx7000

Board Regular
Joined
Nov 14, 2010
Messages
134
Hi,

I am reasonably experienced at excel but have never really been a heavy user of PivotTables. I have searched for solutions to my current problem to no avail so here goes:

I have a data set that has multiple row headings and multiple column headings. I have attached a sample data set, the actual data set I am using is thousands of rows long.
Excel Workbook
ABCDEFGHIJKL
1Entity 1Entity 2Entity 3Entity 4Entity 5Entity 1Entity 2Entity 3Entity 4Entity 5
22009200920092009200920102010201020102010
3Group AGroup AGroup AGroup BGroup BGroup AGroup AGroup AGroup BGroup B
4Set XSet XSet YSet YSet YSet XSet XSet YSet YSet Y
5RevenueRevenue 12948515894107607624
6RevenueRevenue 282347556815933426839
7RevenueRevenue 398857191179991191386
8RevenueRevenue 432498964781378647948
9RevenueRevenue 529355199937988412480
10ExpensesExpenses 113265384112214687837
11ExpensesExpenses 299283558265271396
12ExpensesExpenses 3191375434547472495
13ExpensesExpenses 448206437496121562940
14ExpensesExpenses 56645934667413558881
All Data
Excel 2010

Is there a way that I can pull a PivotTable straight from the data in this format? Currently, I am first using a macro to pull out a line for each value that I then use to make a PivotTable. For example, the first 10 items in the sample set above are pulled out as follows:
Excel Workbook
ABCDEFG
1EntityYearGroupSetItem 1Item 2Amount
2Entity 12009Group ASet XRevenueRevenue 129
3Entity 22009Group ASet XRevenueRevenue 148
4Entity 32009Group ASet YRevenueRevenue 151
5Entity 42009Group BSet YRevenueRevenue 158
6Entity 52009Group BSet YRevenueRevenue 194
7Entity 12010Group ASet XRevenueRevenue 110
8Entity 22010Group ASet XRevenueRevenue 17
9Entity 32010Group ASet YRevenueRevenue 160
10Entity 42010Group BSet YRevenueRevenue 176
11Entity 52010Group BSet YRevenueRevenue 124
Data for pivot
Excel 2010

From this data I can make a PivotTable that allows allows me to cut the data in many different ways easily. Can this be accomplished without the need to extract via a macro first?

Hopefully that all makes sense, any questions please let me know.

Thanks for your help,
alx7000
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,226,144
Messages
6,189,233
Members
453,533
Latest member
germaniyyy

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