pivot table demonstration - maventrainingsite.com · why use a pivot table? 7. delete columns you...

32
Pivot Table Demonstration Tools for LBOHs cott Troppy, Surveillance Epidemiologist Bureau of Infectious Disease and Laboratory Sciences MA Department of Public Health May 27, 2020 1

Upload: others

Post on 23-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

PivotTableDemonstration

ToolsforLBOHs

cott Troppy,SurveillanceEpidemiologistBureauofInfectiousDiseaseandLaboratorySciences

MADepartmentofPublicHealth

May 27, 2020

1

Page 2: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

PivotTableLearningObjectives• Use pivot tables to turn raw data into meaningful and insightful reports

• Structure your raw data in the right way• Design and format your pivot table reports so that they are easy to read and understand

• Summarize your data in different ways including totals, counts and percentages

• Use pivot tables to create monthly summary reports• Display a pivot table as a chart 2

Page 3: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

3

Page 4: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

4

Page 5: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

OutputType:CSVvs XSL

5

Page 6: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

CommaSeparateValue(CSV)output

6

Page 7: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

• Looking at a raw data set like this one here, how would you answer the following?

• What is your count of gender in your data

• What does Race look like?

• What about hispanicmakeup of your events?

• How do I create a table of age ranges?

WhyuseaPivotTable?

7

Page 8: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

DeleteColumnsyoudon’tneed

8

Page 9: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

9

Page 10: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Selectentirespreadsheet– clickonceonboxabovethenumber1

andtotheleftofthefirstcolumn10

Page 11: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

ClickInserttabfromtheRibbonattopofscreenandthenclickPivotTable

11

Page 12: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

InsertyourPivotTableintoanewworksheet

12

Page 13: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Variablesfromspreadsheetappearforyoutochooseandcount

13

Page 14: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

SelectvariableandthendragdownintoRowandValues

14

Page 15: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

RowLabelsandValuestoFindNullValues

15

Page 16: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Blankmeansemptyinyourspreadsheet

16

Page 17: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

CopyandPasteintoanotherworksheettoallowforediting17

Page 18: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

CopyandPasteandchooseValuessothenumberscomeoverandnottheformulafromyourPivottable

18

Page 19: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Nowyoucaneditthecolumnheadersandformatasneeded 19

Page 20: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Blankmeansemptyinyourspreadsheet

20

Page 21: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

CopyandPasteintoanotherworksheettoallowforediting21

Page 22: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Housekeepingtomanageyourdata‐renameyourworksheetasyoucreatethem….

22

Page 23: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

SaveyourCSVtoExcelformat

23

Page 24: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

CopyandPasteandchooseValuessothenumberscomeoverandnottheformulafromyourPivottable

24

Page 25: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Nowyoucaneditthecolumnheadersandformatasneeded 25

Page 26: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

UsingtheGroupFunction(AgeVariable)

26

• From your Excel spreadsheet you have a list of Ages (in years)

• Insert your pivot table• Select Age for Row Labels• Select Count of Years in Values

Page 27: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

27

Page 28: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

UpdateAgeChoices

28

• Update the Grouping options based on the age ranges you want

• Click OK to create the table• You can copy then table and then update the age ranges with counts

Page 29: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

PivotTableGraph• To create a graph first highlight the rows and columns you want to use

• Click the Insert ribbon and then choose a graph type• Column• Line• Pie Chart

29

Page 30: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

InsertaGraphfromyourtable

30

Page 31: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

Graphisinsertedinworksheetwhereyoucanthenformat

31

Page 32: Pivot Table Demonstration - maventrainingsite.com · Why use a Pivot Table? 7. Delete Columns you don’t need 8. 9. Select entire spreadsheet –click once on box above the number

LBOHTemplateSpreadsheet

32