WhatisaPivotTable?
APivotTableisaninteractivetablethatenablesyouto
groupandsummarizeeitherarangeofdataoranExcel
tableintoaconcise,tabularformatforeasierreporting
andanalysis
PivotTableallowsyouto
y Turnthesameinformationaroundto examineitfromdifferent
angles,orperspectives
y Quicklysummarizelonglistsofdata
y Calculatesummaryinformationwithoutwritinganyformulasor
copyinganycells
y Createasummaryusingrawcensusdata
y AnswerspecificquestionsaskedbyAdministratorsandFaculty
y Easilyrearr ang e thepivottablesothatitsummarizesthedata
basedongender,agegroupingsor geographiclocationwiththe
dragofamouse
Advantages
y Interactive, Dynamic,Easyto update
y PivotTableswillnotusealotofmemoryfromyourPC
y Informationcanbeupdated eachtimewhena
Workbookisopenand/orby clickingRefresh
y Youcanmovethedataaround,hideanddisplay
differentcategoryfieldsto providealternativeviewsof
thedatawithoutchangingthestructureofyour
originaltableinanywayatall,soyoucandono
harm!
CapturingtheData
y Youcanuseoneofyourreportingtoolstoextractthe
datafromyourLegacysystem,oruseStudent,
Personnel,FacilitiesData files;anylistortableforthat
matter
y ExportthedataintoanExcelspreadsheet
y Decidewhat informationyouwillneedforthetable:
y Whatfieldstogroupby?
y Whatdataitemtosummarize?
y Whatsummaryfunctiontouse?
Ensurethatyourtablehas…
y DatainaTabularlayout
y Columnlabelsinthefirstrow andthattheyare
meaningful
y No emptyrowsorcolumns
y Onekindofdataineachcolumn;textinonecolumnand
numericvaluesinaseparatecolumn
y Rowsrepresentarecordofrelateddata
y Applyappropriatetypeformattingto yourfields
y Noneofthecolumnnamesdoubleasdataitemsthatwill
beusedasfiltersorquerycriteria,ex.Months,Dates,
namesofLocations…….
CreatingaPivotTable
y ClickintheExceltableorselecttherangeofdatafor thePivotTable
y IntheTablesgroupontheInserttab,clickthePivotTablebutton
y ClicktheSelectatableorrang eoptionbuttonandverifythereferenc e
intheTable/Rangebox
y ClicktheNewWorksheetoptionbuttonorclicktheExistingworksheet
optionbuttonandspecifyacell
y ClicktheOKbutton
y Clickthecheckboxesforthefieldsyouwantto addto thePivotTable
(ordragfieldstotheappropriateboxinthelayoutsection)
y Ifneeded,dragfieldstodifferentboxesinthelayoutsection
ClassicPivotTableView
2007PivotTableView
SwitchingbetweenViews
y MakesuretheactivecellisinsidethePivotTable
y ClickontheoptionstabontheRibbon,thenclickon
theoptionsiconintheActive Fieldgroupofthe
optionstab.
y ThenlaunchthePivotTableoptionsdialogbox. Click
ontheDisplaytab,thenchecktheClassicPivotTable
Layoutbox.(Enablesdraggingoffieldstogrid).
LayoutofPivotTable
y RowArea datadisplaysvertically,oneuniqueitemperro w .Youcanhave
nestedrows.TypesofdatayouwoulddropintheRowareaincludethosethat
youwantto groupandcategorize–forexample,Gender,Race,Location…..
y ColumnArea datadisplayshorizontally,Thefieldsyouwanttodisplayas
columnsatthetopofthePivotTable.Oneuniquevaluepercolumn.Youcan
havenestedcolumns.Thetypesofdatayouwoulddrophereincludethoseyou
wantto trendorshowsidebyside–forexample,Month,Periods,Years….
y ReportFilt erArea–Afieldusedto filterthereport by selectingoneormore
items,enablingyouto displayasubsetofdata.Thetypesofdatayouwould
drophereincludethosethatyouwant toisolateandfocuson–forexample,
Employees,Classification,Regions…..
y ValuesArea–Thisisthecalculationarea,wherenumericaldataisshownand
summarized.Theitemsyouwoulddropherearethosethatyouwantto
measureorcalculate.Youcoulddropafieldinthevalueareamorethanonce,
butwithdifferentcalculations.Youmightneedminimum,maximum,meanof
salaries…..
LayoutofPivotTablecont…
Values
Area
RowArea
Column
Area
Reportfilter
area
LimitationofPivotTableReports
LimitationofPivotTableReports
Catego ry Excel 2003 Excel2007
Row Fields Limitedbyavailable
memory
1,048,576
Column Fields 256 16,384
Pag e Fields 256 16,384
DataFields 256 16,384
Unique Itemsina
SinglePivotField
(couldbelimitedby
availablememory)
32,500 1,048,576
CalculatedItems Limitedbyavailable
memory
Limitedbyavailable
memory
PivotTable reportson
oneworksheet
Limitedbyavailable
memory
Limitedby available
memory
ThenextfewslidesareillustrationsofPivotTablesthatour
officeusedto completeAdHocrequests.
DataRequest
y Howmanystudentsrec eiv edadegreeinArt
duringthepastthreeacademicyear(Fall2006
Spring2009)?
y WhatwastheaverageGPAperperiod?
y Pleasebreakdowndataby degree.
CompletingtheRequest
1. Groupfieldsby Years(first),Month
(Second)andDegree(Third)
2. IDisthedataitemthatwillbeusedto
Summarize
3. Subtotalby Month(first)andYear(Second)
4.SummaryFunctionused:Count (ID)and
Average(GPA)
DataList
DataList
1
2
1. Choosethe
Datathatyou
wantto analyze
2. Choosewhere
youwantthe
PivotTable
Reportto be
placed
CreatePivotTable
PivotTable
Report
Area
Layoutof
PivotTable
Columns
inthe
Table
PivotTableLayout
AddingFieldstotheReport
Fields canbeaddedby (1)
placingacheckinthe
checkboxor(2)dragging
thefieldtothedropzone
Note:ReportshouldCount IDinsteadofSum
ChangingtheValueFieldSettings
NewValueforIDfield
OldValue(Sum)
NewValue(Count)
GroupingFields
1. Movefieldto
desiredlocation
(ColumnorRow)
2. Selectfielditem
3. Optionsribbon>
GroupField
4. Filterthe
groupingas
needed
GroupbyMonths
andYears
1
2
3
4
NewGroupingbyYears
YearsGroup
YearandMonth
ApplyDateFilter
1. Rightclickonfield
2. Filter>DateFilters
Report currentlyshowdatafromFall2003,butthe
requestwouldlikedatafromFall2006.Datefilterwill
beappliedto changetheDate rang e.
ApplyDateFiltercont
SummarizevaluefieldbyAverage
RoundGPA:
RightClick>Number
Format>Number
ModifiedReportwithDateFilter,
DegreeandAverageGPA
ReportLayout
y ReportLayoutcanbemodifiedwithDesignRibbon
y ReportDesign:
y ReportLayout>ShowinTabularForm
y Subtotals>ShowallSubtotalsatBottomofGroup
y BlankRows>InsertBlankLineafterEachItem
y PivotStyleMedium2
FinalReport
TabularForm
SubtotalsatBottomofGroup
BlankLineafterEachItem
CreatingaPivotChart
y APivotChartisagraphicalrepresentationofthedata
inaPivotTable
y APivotChartallowsyoutointeractivelyadd,remove,
filter,andrefreshdatafieldsinthePivotChartsimilar
to workingwithaPivotTable
y ClickanycellinthePivotTable,then,intheTools
grouponthePivotTableToolsOptionstab,clickthe
PivotChartbutton
y Note:
y Yaxiscorrespondsto thecolumnarea
y Xaxiscorrespondsto therow area
PivotChart
y InsertRibbon>PivotTable>PivotChart
y PivotChartLayout
PivotChart
ThenextslidewillillustratethepreviousPivotTable
(excludingGPA)withaPivotChart.
y GroupfieldsbyYear,MonthandDegree
y IDisthedataitemthatwillbeusedto Summarize
y SubtotalbyYear
y SummaryFunction:Count (ID)
y Formappearsintabularform
y Xaxis:YearandMonth
ExamplewithPivotChart
PivotChart
Request:
Whatisthepercentagerateofacademicstandingfor
New Freshmen?
y Variables:
y AcademicStandingandID
y SummaryFunction:
y Count(ID),valueisshownaspercentoftotal
PercentageRateofAcademicStandingforNew
Freshmen
PercentageRatewithPivo tChart
PivotTable
PivotChart
Request:
PleasepullarandomselectionofstudentsfromCommunity
Collegesinthesurrounding area.
WhatistheaveragefirsttermGPA(ifavailable)anddid these
studentsgraduate?
y Variables:
y ID,GPA,School,GraduatedIndicator,StartTerm
y Report Filt er:
y Fall2003
y SummaryFunction:
y Count(ID),Percentage(ID),Average(GPA)
CommunityCollegesinthesurroundingareawithstudents
averagefirsttermGPA(ifavailable)andifthesestudents
graduate
NOTE:ValuesareinColumnLabel
Valuesmovedto theRowLabel
Request:
New FreshmenforFall2007andFall2008thatdidnot
returnforthefollowingFall(Retention).
y Variables:
y ID,HSGPA,SATV,SATM,SAT,AcademicStanding,
Term
y SummaryFunction:
y Count(ID),Average(HSGPA,SATV,SATM,SAT)
PivotTable
PivotChart
New FreshmenforFall2007andFall2008thatdidnot
returnforthefollowingFall.
Request:
AbreakdownofthetotalenrollmentforSpringsemester2009by
classification.
Forexample,howmanyfreshman,sophomore,junior,senior,
graduate,otherwereenrolledduringthatsemester. Categories
brokenintofulltimevs.parttimestudents.
y Variables:
y Level,Classification,TimeStatus,ID
y Groupby Level,Classification
y Subtotalby Level
y SummaryFunction:
y Count (ID)
TotalEnrollmentforSpring2009
Classic
View
Fall2010CourseListbyDepartment
AcademicDepartmentRequest
ProvidetoAcademic AffairsOfficetheTotal
StudentCreditHoursgeneratedbyLeveland
Campus.
Variables:
y Campus–ExtOffCampus–MA MainCampus
y Level GraduateandUndergraduate
y Enrollment(SUM)
y StudentCreditHours(SUM)
SUMbyCampus,LeveltheEnrollmentand
StudentCreditHours
AcademicDepartmentRequest
ProvidetheTotalStudentCreditHoursand Course
SectionsGeneratedbyEachAcademicDepartment.
Variables:
y Department
y StudentCreditHours(Sum)
y Sections(Count)
ListbyDepartmentwithTotalStudentCredit
HoursandSections
AcademicDepartmentRequest
ProvidetotheAcademic AffairsOfficethetotalStudent
CreditHoursgeneratedbyDepartmentandFaculty
Member.
Variables:
y Department
y FacultyMember
y StudentCreditHours
BreakdownbyDepartment,Instructor,andTotal
StudentCreditHoursGeneratedbyeachInstructor.
PersonnelDataFile
AcademicDepartmentRequest
ProvidetotheAcademic AffairsOfficethetotalfaculty
inHomeDepartment.
Variables:
y HomeDepartment
y EmployeeID(COUNT)
y Filters ‐ OCAT(JobCategory)=20andFTE=100
FullTimeFacultybyHomeDepartment
AcademicDepartmentRequest
ProvidetotheAcademic AffairsOfficetheFullTime
FacultySalariesbyHomeDepartment,Total,Average,
MinandMax Salaries.
Variables:
y HomeDepartment
y TotalSalary(SUM,AVERAGE,MIN,ANDMAX)
y Filters –OCAT(JobCategory)=20andFTE=100
FullTimeFacultybyDepartmentandSalary
ProvidefortheAcademicResource OfficeaListofSPA
employeesby HomeDepartmentand BudgetCodeto
includetheTotalandAverageSalary
Variables:
y HomeDepartment
y BudgetCode
y TotSal (TotalSalary)
y Filter –Etpye=SPA
ListofSPAEmployeesbyDepartment,BudgetCode,
TotalandAverageSalary
RequestforalistofFacultythatareeligiblefor
PhasedRetirementtosendto Departmentchairs,so
theappropriatefacultycanbenotified.
1. Fulltimetenuredfacultymembers.
2. Participatingfacultymustbeatleast50yearsofage.
3. Ha veatleastfiveyearsoffulltimeserviceatUNCP.
4.Beeligibleto rec eiveretirement benefitsthrougheithertheTeachers’andState
Employees’Retirement System(“TSERS”)
ortheOptionalRetirementProgram(“ORP”).
Facultymustmeetrequirementsbelow
DatafileforFacultyeligibleforPhasedRetirement
TheNumberEligibleforPhasedRetirement.
5filters
ECLAS=Fulltime
Tenure=‘T’
Age>=50
StateServiceatUNCP>=5
RetirementPlan=‘SRC,’ORP
Spring2010StudentDataFile
ProvidefortheSchoolofEducationaCOUNTofall
StudentsEnrolledinanEducationMajorbyCIP,
TeacherCertificationFlagandClassification.
CIP
TCHC(TeacherCertificationFlag–YorN)
CLA(Classification)
Banid (COUNT)
CountofEducationMajorsbyCIP(13),
TeacherCertificationFlagandClassification
ProvidefortheAdmissionsOfficeabreakdownof
Student EnrollmentbyClassification,Race,and
Sex.
Class(Classification)
Race
Sex
Banid (COUNT)
CountofEnrollmentbyClassification,RaceandGender
Building/RoomInventoryData
ProvidefortheFacilitiesOfficeaBreakdownby
BuildingNameandRoomCodeforClassrooms
andLabsONLY
.
BLDGName
RoomCode(DisplayandCount)
Filter RoomCode=110,210,220,250
Classroom=110
Labs=210,220,250
CountofRoomsbyBuildingand RoomCode
(ClassroomandLabs)
PivotTableWrapUp
y APivotTableallowsyoutocreateanintera ctiveviewofyour
dataset.
y YoucanlookatyourdatathroughaPivotTable,andsee
detailsinyourdata,thatyoumaynothavenoticedbefore.
y Thedatasetdoesnotchange,andisnotconnectedtothe
PivotTable.
y Youcanquicklyandeasilycategorizeyourdataintogroups.
y Summarizelargeamountsofdatainamatterofseconds.
y Youcaninteractivelydraganddropfieldswithinyourreport,
dynamicallychangingyourperspectiveandrecalculatingtotals
tofityourcurrentview.
ContactInformation
GingerBrooks DirectorofReporting
Ginger.brooks@uncp.edu
JeannieDavis ApplicationsAnalyst/Programmer
Jeannie.Davis@uncp.edu
Natasha Burden ApplicationsAnalyst/Programmer
Natasha.Wilson@uncp.edu
UniversityofNorthCarolinaatPembroke
InstitutionalEffectiveness
906DogwoodLane
MagnoliaHouse
PembrokeNC28372
http://www.uncp.edu/ie/resources/ncair2010.pdf
Resources
y Jelen,B.,&Alexander,M. (2007). PivottabledatacrunchingforMicrosoftOfficeExcel
2007. Indianapolis,IN: PearsonEducation,Informit.
y Parsons,J.J.,Oja,D.,Ageloff,R.,&Carey,P. (2008). NewperspectivesonMicrosoft
OfficeExcel2007comprehensive. Boston,MA: ThomsonCourse Technology.