Cannot grasp best way to set up Pivot table Chart that has many years for column headings.

Ronanm

Board Regular
Joined
Nov 13, 2010
Messages
107
Hi

I am trying to work out the best way to set up a Pivot Chart using the following headings.... There are 800 students (rows)

<TABLE style="WIDTH: 581pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=774 x:str><COLGROUP><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 95pt; mso-width-source: userset; mso-width-alt: 4644" width=127><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" width=61><COL style="WIDTH: 56pt; mso-width-source: userset; mso-width-alt: 2706" width=74><COL style="WIDTH: 48pt" span=7 width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=17 width=64><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t201 path="m,l,21600r21600,l21600,xe" o:spt="201" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:path o:connecttype="rect" fillok="f" strokeok="f" o:extrusionok="f" shadowok="f"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:lock shapetype="t" v:ext="edit"></o:lock></v:shapetype><v:shape style="Z-INDEX: 1; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1025 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 2; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1026 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 3; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1027 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 4; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1028 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 5; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1029 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 6; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1030 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 7; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1031 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 8; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1032 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 9; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1033 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 10; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1034 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape><v:shape style="Z-INDEX: 11; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 48pt; HEIGHT: 12.75pt; VISIBILITY: hidden; MARGIN-LEFT: 0px" id=_x0000_s1035 type="#_x0000_t201" o:insetmode="auto" stroked="f"><o:lock v:ext="edit" text="t" rotation="t"></o:lock></v:shape>ID</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 95pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=127>Year of Entry</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=61>Class</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 56pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=74>Level</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=64 align=right x:num>2001</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=64 align=right x:num>2002</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=64 align=right x:num>2003</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=64 align=right x:num>2004</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=64 align=right x:num>2005</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=64 align=right x:num>2006</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 width=64 align=right x:num>2007</TD></TR></TBODY></TABLE>

Each Row is a unique Student, and the other data is as follows;
Year of Entry = 1998 - 2001
Class = Math, English, German etc...
Level = Honours, Advanced, Introduction

And for each of the "Year" columns (2001,2002 etc...), their could be grades such as Good, Exceeded, Outstanding, Average, No Rating.

So I think what I want to do is either have the User choose which "Year" of Grading to look at, or count how many "Good", "Exceeded" etc... for each of the "Years".

Thanks

Ronan
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
FIRST, I HTML Maker Sw DOES NOT PERMIT Over 11 Columns, so here's the First 11 -- Then afterwards I pasted Only My Column M (The Totals) - But anyway, I only grabbed only your FIRST 5 IDs to Test.

I had to Rearrange the Data Table you posted - It is not in PT datatable format needed to prepare my example. Does what I show below look like what you want?
Excel Workbook
ABCDEFGHIJKL
1
2
3Count of ScoreYr
4IDYear of EntryClassLevelScore2001200220032004200520062007
562000MathAdvancedAverage1
6Exceeded11
7Good1
881996FrenchIntroductionExceeded11
9Good111
10Outstanding1
11112000MathIntroductionExceeded111
12Good111
13No Rating1
14121998EnglishAdvancedAverage1
15Exceeded1111
16162000MathHonoursExceeded111
17Good1111
18Grand Total5445344
Sheet4
Excel 2007
Excel Workbook
M
1
2
3
4Grand Total
51
62
71
82
93
101
113
123
131
141
154
163
174
1829
Sheet4
Excel 2007
 
Upvote 0
Many thanks Jim

Hmmn. Yes, looks like what I'm looking for. It's the "It is not in PT datatable format needed to prepare " bit that worries me :eek:).
I will look into "preparing" the data first so that it's Pivot friendly.

Thanks

Ronan
 
Upvote 0
Here's my sample Data Table upon which the PT is Based; Good Luck
Excel Workbook
ABCDEF
1IDYear of EntryClassLevelYrScore
262000MathAdvanced2001Good
362000MathAdvanced2002Exceeded
462000MathAdvanced2003Average
562000MathAdvanced2004Exceeded
681996FrenchIntroduction2001Outstanding
781996FrenchIntroduction2002Exceeded
881996FrenchIntroduction2004Exceeded
981996FrenchIntroduction2005Good
1081996FrenchIntroduction2006Good
1181996FrenchIntroduction2007Good
12112000MathIntroduction2001Exceeded
13112000MathIntroduction2002Exceeded
14112000MathIntroduction2003Exceeded
15112000MathIntroduction2004No Rating
16112000MathIntroduction2005Good
17112000MathIntroduction2006Good
18112000MathIntroduction2007Good
19121998EnglishAdvanced2001Average
20121998EnglishAdvanced2003Exceeded
21121998EnglishAdvanced2004Exceeded
22121998EnglishAdvanced2006Exceeded
23121998EnglishAdvanced2007Exceeded
24162000MathHonours2001Good
25162000MathHonours2002Good
26162000MathHonours2003Exceeded
27162000MathHonours2004Exceeded
28162000MathHonours2005Exceeded
29162000MathHonours2006Good
30162000MathHonours2007Good
Sheet3
Excel 2007
 
Upvote 0
Jim

Great. I'll have a new sheet, which "look up" up the data sheet, and have it repeating the records as required. Many thanks. Appreciate it



Ronan
 
Upvote 0

Forum statistics

Threads
1,215,290
Messages
6,124,091
Members
449,142
Latest member
championbowler

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