Confident CellsExcel practice Start free

Showing formulas and tracing where numbers come from: practice exercises

Show Formulas, Ctrl+`, Trace Precedents, Trace Dependents, Remove Arrows, tracer arrows. 9 exercises on real-looking data, each checked as you go. This lesson is free, with no account needed.

In the lesson

This lesson has Excel's Formula Auditing buttons above a practice sheet (Trace Precedents and Dependents, Error Checking, Evaluate Formula and the Watch Window), with arrows and green triangles drawn as in Excel, and each task is checked as you go.

Open the Showing formulas and tracing where numbers come from lesson

How it works

A total that looks right can still be wrong. Excel can show you how a sheet is built. Show Formulas puts every formula in its cell instead of its answer, and Trace Precedents draws arrows from the cells a formula uses.

Trace Dependents goes the other way: arrows from a cell to every formula that uses it. Both are on the Formulas tab, in the Formula Auditing group.

Show Formulas

A shop sheet has quarterly sales in B:E and a total for each shop in F. Every total looks fine. Press Ctrl+` (the key left of 1) and each cell shows what's in it: F2 shows =SUM(B2:E2), F3 shows =SUM(B3:E3)… and F5 shows 8400. Someone typed a number over the formula, so F5 won't change when the sales do.

Press Ctrl+` again to go back to the answers. The columns get wider while the formulas show, and numbers lose their £ signs; nothing on the sheet changes.

Windows: Formulas, Formula Auditing, Show Formulas.

Mac: Formulas, Show Formulas.

Trace Precedents: what a formula uses

Click the total in F12 and choose Trace Precedents. A blue box goes round B12:E12 with an arrow to F12: those are the cells it adds. A single cell gets a dot and an arrow; a range gets a box.

Click Trace Precedents again and Excel goes a level further back: if F12 adds other totals, arrows now come from the cells they use. Keep clicking until nothing more is added.

A red arrow comes from a cell that shows an error. A dashed black arrow from a little sheet icon means the formula uses another worksheet.

Windows: Formulas, Formula Auditing, Trace Precedents.

Mac: Formulas, Trace Precedents.

Trace Dependents: what uses a cell

Before you change the VAT rate in B1, check what it affects. Click B1 and choose Trace Dependents: an arrow goes from B1 to every formula that uses it. A VAT cell with a typed 0 gets no arrow, because it doesn't use B1.

Click again to follow the arrows further: to the totals that add up those VAT amounts.

Windows: Formulas, Formula Auditing, Trace Dependents.

Mac: Formulas, Trace Dependents.

Remove Arrows, and fixing what they show

The arrows stay until you take them off: Remove Arrows takes them all. Its ▾ has Remove Precedent Arrows and Remove Dependent Arrows, which take off one level at a time. Changing a cell an arrow starts or ends at removes them too.

Arrows make some mistakes easy to see. A total of eight weeks whose box stops at week 7 has missed a row. A line total whose arrows come from the row above was copied wrongly. Fix the formula, and trace again to check.

What you'll practise

  1. Someone typed a number over one of the shop totals in column F, so it no longer adds up. Press Ctrl+` (or Formulas, Show Formulas) to see the formulas: the odd one out shows a number. Type its address (such as F3) in H1.
  2. Which cells does the total in F6 use? Click F6, then Formulas, Trace Precedents: a blue box goes round the cells it adds, with an arrow to F6. Then select those cells.
  3. Which VAT amounts use the rate in B1? Click B1, then Formulas, Trace Dependents: an arrow goes to each formula that uses it. Count the arrows, and type how many in E1.
  4. The grand total in F7 adds up the shop totals, which add up the quarters. Click F7 and click Trace Precedents twice: the first click shows the shop totals it adds, and the second goes back a level to the cells those totals use.
  5. Someone left tracer arrows on this sheet. Take them all off: Formulas, Remove Arrows.
  6. The total in B11 looks too small. Click it and Trace Precedents: the blue box shows which weeks it adds. Then fix the formula so it adds every week.
  7. One line total in column D is wrong. Click D8 and Trace Precedents: its arrows come from the wrong row. Fix D8 so it uses its own row.
  8. Display the dependents of cell B1 by using tracer arrows.
  9. Display the formulas in the worksheet instead of their results.

Guide with worked examples: Excel formula auditing: how to check a spreadsheet's formulas