← Working with data

Working with data: cards

One screen for each skill, to look up when you need it. Each card says what to do in any app, then where to find it in the common ones, and links to the lesson that teaches it.

Cells and formulas

Use a formula, not a typed answer

A formula starts with = and uses cell names, so the answer changes when a number changes. A typed answer goes stale.

  1. Click the cell for the answer.
  2. Type = then click the first cell (or type its name, such as B3).
  3. Type the sign (+, -, *, /) and click the next cell.
  4. Press Enter. Change a number it uses and watch the answer follow.

Watch for: If you typed the answer, it will not change. A formula shows in the formula bar.

Excel
Same in every version. The formula bar is above the grid.
Sheets
Same. Click the cell and the formula shows in the bar above the grid.

Other apps work the same way; look for the same word in the menus. Lesson: A formula keeps up

Copy a formula down a column

When you copy a formula, its cell names move with it, so each row works on its own row.

  1. Write the formula in the first row.
  2. Select that cell and the cells below it.
  3. Fill down (or copy, then paste).
  4. Click a cell in the last row and check its formula uses that row.
Excel
Ctrl+D fills down, or drag the small square at the cell's corner.
Sheets
Ctrl+D fills down, or drag the small square at the cell's corner.

Other apps work the same way; look for the same word in the menus. Lesson: Copy a formula

Fix a cell with $

A $ in front of a column letter or row number stops that part moving when the formula is copied. Use it for a number every row shares.

  1. Write the formula with the shared cell, such as =B3*B1.
  2. Put $ before the letter and the number of the shared cell, such as $B$1.
  3. Copy the formula down and check every row still points at the shared cell.

Watch for: Without the $, the shared cell slides down with each row and the answers go wrong after the first.

Excel
F4 adds the $ signs to the cell you are editing (on some keyboards Fn+F4).
Sheets
Type the $ signs, or press F4 while editing.

Other apps work the same way; look for the same word in the menus. Lesson: A cell that stays put

Summing up

Add up a column

SUM adds a range. A range is two cells with a colon between them, from the first to the last.

  1. Click the cell under the numbers.
  2. Type =SUM( then drag over the numbers (this writes B2:B9).
  3. Type ) and press Enter.

Watch for: Check the range covers every number and nothing else, such as a heading.

Excel
AutoSum on the Home tab writes the formula for you. Check the range it picked.
Sheets
Sigma button in the toolbar (Functions), then SUM.

Other apps work the same way; look for the same word in the menus. Lesson: Add up a column

Typical, smallest and biggest

AVERAGE gives the typical value, MIN the smallest, MAX the biggest. They use a range, like SUM.

  1. Type =AVERAGE(, =MIN( or =MAX( in an answer cell.
  2. Drag over the range and close the bracket.
  3. Use ROUND to tidy the answer, for example =ROUND(AVERAGE(B2:B9),1).

Watch for: An empty cell is skipped, but a typed 0 is counted and drags the average down.

Excel
The same functions with the same names.
Sheets
The same functions with the same names.

Other apps work the same way; look for the same word in the menus. Lesson: Typical, smallest and biggest

Count and decide

COUNTIF counts the cells that meet a rule. IF picks one answer or another. Words in a rule go inside quotes.

  1. For a count, type =COUNTIF(range, rule), such as =COUNTIF(C2:C9,">=5").
  2. For a decision, type =IF(rule, answer if yes, answer if no).
  3. Use quotes round words, such as "Yes".

Watch for: ">" and ">=" are different. Check the cell that is exactly on the line.

Excel
Commas separate the parts. Some regions use semicolons.
Sheets
Commas separate the parts. Some regions use semicolons.

Other apps work the same way; look for the same word in the menus. Lesson: Count and decide

Show the data

Put rows in order, or show only some

Sort moves whole rows so each row stays together. A filter hides the rows that do not match and keeps them.

  1. Click inside the table (or select the whole table with its headings).
  2. Choose Sort and the column to sort by, small to large or large to small.
  3. To show only some rows, turn on Filter and pick the values to keep.
  4. Turn the filter off to bring every row back.

Watch for: Sorting one column on its own breaks the rows apart. Select the whole table.

Excel
Data tab, Sort and Filter.
Sheets
Data menu, Sort range and Create a filter.

Other apps work the same way; look for the same word in the menus. Lesson: Put the rows in order

Choose a chart that tells the truth

Column compares groups. Line shows change over time. Scatter shows two numbers against each other. Pie shows parts of one whole.

  1. Select the headings and the numbers to chart.
  2. Insert a chart and pick the type that matches the question.
  3. Add a title and name both axes, with the units.
  4. Ask what the chart shows. If it does not answer your question, try another type.

Watch for: A pie for change over time hides the change. Use a line.

Excel
Insert tab, Charts.
Sheets
Insert menu, Chart, then choose the type in the editor.

Other apps work the same way; look for the same word in the menus. Lesson: Choose a chart