Skip to content

Trace a formula back to its cells

Names, auditing and recalculation9 minPremium

Builds on When Excel shows an error.

A quarterly report in Calgary shows a profit that looks too high, and every column of the sheet holds formulas. Before anyone edits a cell, the auditing tools on the Formulas tab can show where the profit gets its numbers.

How it works

The Formula Auditing group on the Formulas tab has a tool for each question you'd ask about a result:

  • Show Formulas, Ctrl`, shows every formula in its own cell in place of the result. A cell that shows a plain number in this view holds a typed value.
  • Trace Precedents draws arrows into the selected cell from the cells its formula reads, with a box around a range. Trace Dependents draws arrows out of the selected cell to the formulas that read it. Choose either one again to go a level further, and Remove Arrows to clear them.
  • Evaluate Formula works through the selected formula one step at a time, so you can see where the result goes wrong.
  • Watch Window keeps cells you choose in view, from any sheet, while you change others.

Example

B9 works out the quarter's profit with =B4-B7, revenue minus costs. Revenue in B4 adds the two kinds of sales, and costs in B7 add salaries and rent.

  1. Step 1: Select B9 and choose Trace Precedents. Arrows come in from B4 and B7, the two cells =B4-B7 reads.
  2. Step 2: Choose it again and Excel goes a level further. It boxes B2:B3, which B4 adds up, and B5:B6, which B7 adds up.
  3. Step 3: The trail ends at typed numbers. Those are the inputs to check when the profit looks wrong.
Each time you choose Trace Precedents, the trail reaches one level further back, until it starts from typed numbers. In B9, =B4-B7 returns $22,650.

Common mistakes

  • A number that looks right can still be typed over a formula. It matches today and stops updating, and Show Formulas is the quickest way to find it.
  • Trace Precedents shows only the cells a formula reads directly. Choose it again to reach the cells behind them.
  • An arrow that ends at a small sheet icon points to a cell on another sheet. Double-click the arrow and choose the cell in the Go To list to jump there.

In short

  • Show Formulas (Ctrl`) shows every formula on the sheet, and any number typed in place of one.
  • Trace Precedents shows where a result gets its numbers. Trace Dependents shows what a cell feeds.
  • Evaluate Formula steps through a formula, and the Watch Window keeps far-off cells in view.

Practice

Premium

5 exercises: 1 find-it task, 2 selections, 1 shortcut and 1 quiz question.

Practice is part of Premium

Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.