Finding Stories in Spreadsheets
Finding Stories in Spreadsheets
$12.99
Minimum price
$19.99
Suggested price
Finding Stories in Spreadsheets

Last updated on 2016-04-16

About the Book

One spreadsheet can tell many stories. You just have to know the right questions to ask.

Based on a decade of training journalists and working with news organisations on data-driven stories, Finding Stories In Spreadsheets outlines the techniques for asking the right questions of data using tools like Excel and Google spreadsheets.

These aren't just questions about numbers: you'll find out how spreadsheet techniques can help you find the 'needle in the haystack' in text data. You'll learn how to clean up and modify your data so that you can ask it different questions, or get it ready for maps or charts, how to create new data from raw materials, and how to combine datasets to look for connections and trends.

With regular examples from journalism and real life data to work with, Finding Stories In Spreadsheets is *full* of those questions, in the language that spreadsheets understand. 

Cover image concept by @CarolineBeavon. Illustration by Matt Buck at Drawnalism.

About the Author

Paul Bradshaw
Paul Bradshaw

Paul Bradshaw runs the MA in Data Journalism and the MA in Multiplatform and Mobile Journalism at Birmingham City University, where he is an associate professor. He publishes the Online Journalism Blog, and is the founder of investigative journalism website HelpMeInvestigate. He has written for the Guardian and Telegraph’s data blogs, journalism.co.uk, Press Gazette, InPublishing, Nieman Reports and the Poynter Institute in the US. Formerly Visiting Professor at City University’s School of Journalism in London, He is the author of the Online Journalism Handbook, now in its second edition, Magazine Editing (3rd Edition) with John Morrish and Mobile-First Journalism with Steve Hill. Other books which Bradshaw has contributed to include Investigative Journalism (second edition), Web Journalism: A New Form of Citizenship; and Citizen Journalism: Global Perspectives.

His books on Leanpub include Scraping for JournalistsFinding Stories in Spreadsheets, the Data Journalism Heist, Snapchat for Journalists, and 8000 Holes: How the 2012 Olympic Torch Relay Lost its Way.

Bradshaw has been listed in Journalism.co.uk’s list of the leading innovators in journalism and media and Poynter’s most influential people in social media. In 2010, he was shortlisted for Multimedia Publisher of the Year. In 2016 he was part of a team that won the CNN MultiChoice African Journalist Awards.

In addition to teaching and writing, Paul acts as a consultant and trainer to a number of organisations on social media and data journalism. You can find him on Twitter @paulbradshaw

Bundles that include this book

Finding Stories in Spreadsheets
Data Journalism Heist
2 Books
$29.98
Suggested Price
$14.99
Bundle Price
Finding Stories in Spreadsheets
Scraping for Journalists (2nd edition)
2 Books
$40.00
Suggested Price
$24.99
Bundle Price
Finding Stories in Spreadsheets
Scraping for Journalists (2nd edition)
Data Journalism Heist
3 Books
$49.99
Suggested Price
$28.99
Bundle Price

Table of Contents

  • Introduction
  • Stories about change, stories in context: basic calculations
    • Cell references
    • Calculating a change
    • Calculating a proportion
    • Ratios: calculating a proportion as ‘1 in 10’
    • Combining both: calculating what proportion a change is
    • Recap
  • Saving time to hit a deadline: repeating and fixing a calculation across cells
    • Shortcut: repeating a calculation down hundreds of cells with one double-click
    • What if I want to fix the cell reference so it doesn’t change when pasted?
    • Recap
    • The last chapter’s story: are there more drunk and disorderly arrests?
  • How much did it cost? How many people were affected? The first function: adding a series of cells with SUM
    • If functions are recipes, arguments are the ingredients
    • When there’s more than one ingredient: commas and semicolons
    • Recap
  • Who’s top, who’s bottom? MAX, MIN, and sorting
    • MAX and MIN
    • Recap
    • The last chapter’s story: drunk and disorderly arrest totals
  • Detour: getting to know the spreadsheet - useful shortcuts and tips to avoid mistakes
    • Keyboard shortcuts to explore your data quickly
    • Changing your data: remove empty rows before the headings
    • Recap
  • Hitting the deadline: understanding and formatting the data - number or text
    • Numbers
    • Text
    • Recap
  • Best sellers and averages: MEDIAN, AVERAGE and MODE
    • Calculating an average: AVERAGE, MEDIAN or MODE?
    • Man made or natural?
    • Recap
  • How many payments? How many people? Counting, not adding up: COUNT
    • The story is what’s missing: COUNTBLANK
    • Recap
    • The last chapter’s story: political donations
  • Only count if… setting criteria for a formula: COUNTIF
    • Counting something specific
    • Looking for cells containing words within sentences: the wildcards
    • Trial and error: the single-cell test
    • Counting against combined criteria: COUNTIFS
    • Recap
    • The last chapter’s story: missing donations data?
  • If… continued: setting criteria for a sum: SUMIF
    • Recap
    • The last story: how many donations fit the bill?
  • Putting the story into context, or looking from a fresh angle: merging data from different tables using VLOOKUP
    • Dry run: two small tables on the same sheet
    • Using VLOOKUP on data in different sheets
    • Those pesky #N/A results
    • Recap
    • The last chapter’s story: what proportion of donations came from small donors?
  • My data is dirty! Basic cleaning using TRIM, CLEAN and SUBSTITUTE
    • Those pesky spaces
    • Getting rid of ‘non printing’ characters: CLEAN
    • And or ampersand? Substituting particular words or characters
    • Recap
    • The last chapter’s story: baby name trends
  • Detour: generating consecutive numbers or dates
    • Other number sequences
    • Text sequences: days and months
    • Getting more control over your ranges - the Fill Series option
  • Using more than one function at a time: nested functions
    • Nesting functions
    • Recap
  • Generating categories and other extra data: IF
    • Testing more than one thing - nested IF
    • Hello operators: comparing beyond ‘greater than’ or ‘less than’
    • Testing text: combining IF with other functions
    • Recap
    • The last chapter’s story: simplifying names to make them consistent with another dataset
  • Detour: testing whether something is TRUE or FALSE
    • Logical tests with text
    • Adding up TRUE and FALSE
    • Functions which return logical results
    • Recap
  • Finding errors or missing data - and testing data types: ISERR, ISBLANK, ISTEXT and others
    • Functions for testing data types
    • Functions that look for errors, or types of errors
    • Using IS functions in practice: an error-checking column
    • Recap
    • The last chapter’s story: converting restaurant ratings into categories
  • Testing two things at once: AND, OR and NOT
    • Finding outliers at the top or bottom: OR
    • Finding one of a series of possible text values: OR
    • Finding numbers in the middle, or in a particular range: AND
    • Applying criteria across multiple columns
    • Combining with IF to avoid multiple IF tests
    • Making multiple negative tests
    • Recap
    • The last chapter’s story: classifying non-rated hygiene reports
  • What day did that date fall on? Which year was the worst? Extracting days, months and years from full dates
    • Extracting dates, months and years: DAY, MONTH and YEAR
    • Extracting days and months as words or years as ‘66, ‘94 etc: TEXT
    • Using the Format Cells ‘Custom’ option to do the same thing to existing dates
    • Hours and minutes: HOUR, MINUTE, SECOND and TEXT again
    • When things don’t go as you expect them to: dealing with errors in date functions
    • Recap
    • Finding the story: which outlets have consistently bad scores?
  • How old is someone? Ages and using TODAY’s date
    • Breaking down the problem
    • Calculating the years
    • Checking whether a birthday comes before or after a date
    • Making an adjustment based on the results
    • Using TODAY to calculate an age against today’s date
    • Making it easy to understand: breaking the formula back up
    • Other ways of calculating ages: the unsupported DATEDIF function
    • Watching out for leap years in other calculations
    • Recap
    • Finding the story: what years and months are worst for hygiene inspections?
  • Grabbing or checking the first, middle or last part of a piece of information: RIGHT, LEFT and MID
    • Grabbing characters from the beginning: LEFT
    • Grabbing characters from the end: RIGHT
    • Grabbing characters from the middle: MID
    • What if the starting position or number of characters depends? Introducing LEN
    • What if the starting position or number of characters depends? Part two: SEARCH and FIND
    • Recap
    • Finding the story: how old are Guantanamo prisoners?
  • Putting names, addresses and other data back together: CONCATENATE, & and adding special characters with CHAR
    • The alternative to CONCATENATE: &
    • Recap
    • Tell the story: finding special characters
  • More data cleaning: formatting text or numbers consistently with UPPER, LOWER, PROPER and FIXED
    • Rounding and formatting numbers: FIXED and ROUND
    • Showing figures as millions or billions without all the zeroes
    • Recap
  • Changing rows into columns, and vice versa: TRANSPOSE
    • The TRANSPOSE function in Excel - for when you need data to always be transposed
    • The TRANSPOSE function in Google Sheets - no need for keyboard shortcuts
    • The Paste Special option: the one-off transpose
    • Recap
  • Repeating calculations across multiple cells or to create the ingredients of a single function: array formulae
    • Arrays in practice: back to the drunk and disorderly data
    • Changing or extending an array formula
    • Multiple calculations with one result: using an array formula in a single cell
    • Generating your own arrays
    • Array constants used in a formula
    • Recap
    • The last chapter’s story: when’s the worst time to turn up at hospital?
    • Detour: An introduction to Google Sheets - an always-connected spreadsheet tool
    • Make sure the settings are for your country
  • Grabbing data from elsewhere - IMPORT and GOOGLE functions in Google Sheets
    • Pulling data from another sheet: IMPORTRANGE
    • Grabbing data from online CSVs and TXT files: IMPORTDATA
    • Grabbing data from webpage tables and lists: IMPORTHTML
    • Grabbing data from RSS feeds: IMPORTFEED
    • Grabbing data from an XML document - or a HTML webpage: IMPORTXML
    • Using IMPORTXML to grab data from HTML webpages
    • Grabbing links and other values that are not in visible text
    • Recap
    • Exercises
  • Dealing with data in another language: GOOGLETRANSLATE and DETECTLANGUAGE
    • Detecting the language: DETECTLANGUAGE
    • Using DETECTLANGUAGE as part of GOOGLETRANSLATE
    • False friends and cognates
    • Tip: translating a term to generate search URLs in other languages
    • Recap
    • IMPORT Exercises - tips
  • Converting currency or using stock prices: GOOGLEFINANCE
    • Converting currency with GOOGLEFINANCE
    • Grabbing stock values with GOOGLEFINANCE
    • Recap
  • Publishing live data in a live chart
    • Recap
    • Exercise: grabbing and visualising live data with IMPORTHTML and live charts
  • Comparing change visually by generating sparkline charts for every row: SPARKLINE
    • Writing a SPARKLINE formula
    • Customising how the sparkline appears: bar charts
    • Keeping it relative: specifying minimum and maximum scale
    • Recap
    • Last chapter exercise: grabbing and visualising live data with IMPORTHTML and live charts
  • Asking questions (or allowing users to), SQL-style: QUERY
    • Forming the question: Select, Where and Order by
    • More complex clauses: group by and pivot
    • Writing queries with multiple or alternative criteria
    • Generating ‘hackable’ URLs which allow users to see the data their own way
    • Using a form to allow users to generate their own results pages
    • Examples of QUERY being used in code
    • Recap
  • Adding some randomness: spreading out locations randomly using RAND
    • RAND: Give me a number between 1 and 0
    • RANDBETWEEN: Give me a number between whatever I say!
    • Recap
    • Exercise: generate random placemarks on a map - within reason
  • Is this value ranked high or low? What value is 3rd? RANK, LARGE and SMALL
    • Using the RANK function
    • Finding values at a particular rank: LARGE and SMALL
    • Recap
  • What percentile is this at or above? PERCENTRANK and PERCENTILE
    • Percentile functions
    • What percent of values are smaller? PERCENTRANK
    • What value is at the nth percentile? PERCENTILE
    • Exercise: using both sets of functions with marathon race times
    • Recap
  • Classifying data into top, middle and bottom quarters: QUARTILE
    • Using the QUARTILE function
    • Applying quartile values to classify data into four quarters
    • Recap
  • Cross referencing and advanced cell references: naming cells and using INDIRECT, INDEX and MATCH
    • Naming cells
    • INDIRECT
    • Cross-referencing cells based on values in other cells
    • INDEX
    • Working out which index to grab: MATCH
    • Exercise: Finding where schoolchildren go outside their area
    • Recap
  • Getting statistical: correlation with CORREL and other ways of testing data
    • How strong is the relationship between two columns of numbers?
    • Using the CORREL function
    • Once you have a result
    • Recap
    • Try it out
  • The final chapter: next steps
    • What else can Excel do? Add-ins, templates and VBA
    • Tell me your problems

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub