edubun
English

Spreadsheets and data

Spreadsheets in Excel and Google Sheets, from the first cell to IF and VLOOKUP, with a working sheet in every unit that checks your tasks as you type.

ExplanationSimulationPractice

Learning path

  1. 1Spreadsheet basicsIntro6 unitsabout 124 min
  2. 2Spreadsheet formulasBasic6 unitsabout 140 min

Course map

Spreadsheets and data · Courses: 2

For anyone who keeps a list in a grid

These two courses are for anyone who keeps a list, a budget or a set of marks in a grid and wants formulas that do not break when copied. They start at the beginning and stay with Microsoft Excel and Google Sheets side by side, noting where the two programs behave differently. A third course, Thinking with data, is still being written.

What a cell really holds

Much of the trouble comes from the gap between what a cell shows and what it stores. Type 007 and both programs store the number 7; the zeros survive only if you start with an apostrophe. A date becomes a serial number, so 5 July 2011 is 40729. A cell formatted to two decimals can show 1.65 while holding 1.649175, and only ROUND changes the stored value. Three cells each showing 0.33 still add up to exactly 1. And =5+2*3 gives 11, not 21, because multiplication comes first.

Where formulas usually go wrong

Filling =A4*B1 down without a dollar sign, so the copies drift away from the tax rate. Typing 0 for a test that has not been marked, which drags the average down; AVERAGE skips empty cells but counts the 0. Clicking "decrease decimal" and calling the number rounded. Writing > when the rule says "60 or more", so a score of exactly 60 fails. Starting a nested IF with the lowest threshold. Leaving out FALSE in VLOOKUP and getting an approximate match. Each unit lists its own set, and the notes suggest testing every formula at the edges, such as 60 and 59.9.

Questions about this subject

What do dollar signs mean in a spreadsheet formula?

They lock the part of a cell reference that follows them, rather than indicating a currency. In $B$1 both the column and row stay fixed when a formula is copied. This keeps a shared tax rate in one place while relative references to each row’s price move, preventing copied formulas from reading an unrelated cell. Spreadsheet formulas

What is the difference between A$1 and $A1?

A$1 fixes the row while allowing the column to change; $A1 fixes the column while allowing the row to change. A multiplication grid can use both kinds in =B$1*$A2. Copying that formula across and down keeps one input in the top row and the other in the first column, instead of shifting both away. Spreadsheet formulas

Does AVERAGE treat an empty cell as zero?

Not when averaging a range: empty cells and text are ignored, while a numeric zero is included. Scores of 82, 91, 0 and 77 therefore average to 62.5 even if two other cells contain an absence note and a blank. Replacing a missing mark with zero changes the calculation, rather than merely changing how the sheet looks. Spreadsheet formulas

What is the difference between COUNT and COUNTA?

COUNT counts numeric cells in a range, whereas COUNTA counts cells that are not empty, including text. A date can count as numeric because spreadsheets store dates as numbers. A formula returning an empty string can look blank but still count with COUNTA, so visible emptiness is not a reliable test of whether a cell is counted. Spreadsheet formulas

Why does AVERAGE show a division-by-zero error?

If its range contains no numbers, there is no numeric count to use as the denominator. AVERAGE then returns #DIV/0! rather than treating text or empty cells as a set of zero scores. Check what the cells contain before replacing the error, since a genuinely recorded zero and an unrecorded result should not automatically mean the same thing. Spreadsheet formulas