PivotTableDemonstr ation
ToolsforLBOHs
cott Troppy,SurveillanceEpidemiologist
BureauofInfectiousDiseaseandLaboratorySciences
MADepartmentofPublicHealth
May27,2020
1
PivotTableLearningObjectives
Usepivottablestoturnrawdataintomeaningfuland
insightfulreports
Structureyourrawdataintherightway
Designandformatyourpivottablereportssothattheyare
easytoreadandunderstand
Summarizeyourdataindifferentwaysincludingtotals,counts
andpercentages
Usepivottables
tocreatemonthlysummaryreports
Displayapivottableasachart
2
3
4
OutputType:CSVvs XSL
5
CommaSeparateValue(CSV)output
6
Lookingatarawdataset
likethisonehere,how
wouldyouanswerthe
following?
Whatisyourcountof
genderinyourdata
WhatdoesRacelook
like?
Whatabouthispanic
makeupofyourevents?
HowdoIcreateatableof
ageranges?
WhyuseaPivotTable?
7
DeleteColumnsyoudon’tneed
8
9
Selectentirespreadsheet– clickonceon
boxabovethenumber1
andtotheleftofthefirstcolumn
10
ClickInserttabfromtheRibbonattopof
screenandthenclickPivotTable
11
Insertyour
PivotTable
intoanew
worksheet
12
Variables
from
spreadsheet
appearfor
youto
chooseand
count
13
Selectvariableandthendrag
downintoRowandValues
14
RowLabelsandValuestoFind
NullValues
15
Blankmeansemptyinyourspreadsheet
16
CopyandPasteintoanother
worksheettoallowforediting
17
CopyandPasteandchooseValues
sothenumberscomeoverandnot
theformulafromyourPivottable
18
Nowyoucaneditthecolumn
headersandformatasneeded
19
Blankmeansemptyinyourspreadsheet
20
CopyandPasteintoanother
worksheettoallowforediting
21
Housekeepingto
manageyour
data‐rename
yourworksheet
asyoucreate
them….
22
SaveyourCSVtoExcelformat
23
CopyandPasteandchooseValues
sothenumberscomeoverandnot
theformulafromyourPivottable
24
Nowyoucaneditthecolumn
headersandformatasneeded
25
UsingtheGroupFunction(AgeVariable)
26
FromyourExcelspreadsheetyouhavea
listofAges(inyears)
Insertyourpivottable
SelectAgeforRowLabels
SelectCountofYearsinValues
27
UpdateAgeChoices
28
UpdatetheGroupingoptionsbasedontheagerangesyou
want
ClickOKtocreatethetable
Youcancopythentableandthenupdatetheageranges
withcounts
PivotTableGraph
Tocreateagraphfirst
highlighttherowsand
columnsyouwanttouse
ClicktheInsertribbonand
thenchooseagraphtype
Column
Line
PieChart
29
InsertaGraphfromyourtable
30
Graphisinsertedinworksheetwhereyou
canthenformat
31
LBOHTemplate
S
p
readshee
t
32