Excel for Journalists Steve Doig Arizona State University USA.

24
Excel for Journalists Steve Doig Arizona State University USA

Transcript of Excel for Journalists Steve Doig Arizona State University USA.

Page 1: Excel for Journalists Steve Doig Arizona State University USA.

Excel for Journalists

Steve DoigArizona State University

USA

Page 2: Excel for Journalists Steve Doig Arizona State University USA.

What is “data”? Information in table form Columns are the variables

Name, date, time, address, age, etc. Rows are the records

Persons, incidents, etc.

Page 3: Excel for Journalists Steve Doig Arizona State University USA.

Information, but not data Steve Doig is a 62-year-old

professor who teaches at Arizona State University.

Page 4: Excel for Journalists Steve Doig Arizona State University USA.

Now it’s data!

Last name

First name

Age Title City

DoigSteve 62

Professor Phoenix

Jones Bob 45 Reporter Miami

Smith Tom 34 Reporter New York

Page 5: Excel for Journalists Steve Doig Arizona State University USA.

Why use Excel? Good stories can be found in the

patterns of data Human mind alone can’t see the

patterns in large sets of data Excel has tools to help us see the

patterns in data in table form Excel can handle large tables

More than 16.000 columns More than 1 million rows

Page 6: Excel for Journalists Steve Doig Arizona State University USA.

A blank spreadsheet

Page 7: Excel for Journalists Steve Doig Arizona State University USA.

What Excel can do Import data from many formats Sort data by one or more variables Filter data to show only selected

rows Transform data using functions

and formulas Summarize data into categories

Page 8: Excel for Journalists Steve Doig Arizona State University USA.

Importing data Common formats

*.xls (or *.xlsx) Fixed-width text Delimited text (comma, tab, etc) *.dbf files (old dBase) HTML tables

Data Import Wizard will help

Page 9: Excel for Journalists Steve Doig Arizona State University USA.

Delimited text example

Page 10: Excel for Journalists Steve Doig Arizona State University USA.

Fixed-width text

Page 11: Excel for Journalists Steve Doig Arizona State University USA.

Sorting a table

Page 12: Excel for Journalists Steve Doig Arizona State University USA.

Now it’s sorted

Page 13: Excel for Journalists Steve Doig Arizona State University USA.

Filtering: Data…Filter…Autofilter

Page 14: Excel for Journalists Steve Doig Arizona State University USA.

Pick a category…

Page 15: Excel for Journalists Steve Doig Arizona State University USA.

…and see just that

Page 16: Excel for Journalists Steve Doig Arizona State University USA.

Transforming data Math functions

Add, subtract, multiply, divide Average, median, maximum, minimum

Date/Time functions Day of week, days between

Text functions Extract parts of text strings Search and replace text

Page 17: Excel for Journalists Steve Doig Arizona State University USA.

Function Wizard (ƒx)

Page 18: Excel for Journalists Steve Doig Arizona State University USA.

Function Wizard (ƒx)

Page 19: Excel for Journalists Steve Doig Arizona State University USA.

Summarizing data We often want to take a big

collection of individual records and pile them into categories

Trick: Visualize the piece of paper that would give you the answer you seek

Tool: Pivot tables

Page 20: Excel for Journalists Steve Doig Arizona State University USA.

Pivot table example Data: Region, town name, crimes,

etc. Question: “How many crimes

occurred in each region?” Visualize the piece of paper that

would answer the question

Page 21: Excel for Journalists Steve Doig Arizona State University USA.

Building a pivot table

Page 22: Excel for Journalists Steve Doig Arizona State University USA.

Pivot table

Page 23: Excel for Journalists Steve Doig Arizona State University USA.

Sorted pivot table

Page 24: Excel for Journalists Steve Doig Arizona State University USA.

EXERCISE!

www.public.asu.edu/~sdoig/UNL

(get Excel crime data)