Lesson 52 of 92 · Free Excel Course
Excel
Trace Precedents in Excel: Trace Dependents, Evaluate Formula and Other Auditing Tools
Use Trace Precedents, Trace Dependents, Evaluate Formula, the Watch Window, Error Checking and Show Formulas to find a wrong number. Free practice model.
When a total looks wrong, the hard part is finding which cell caused it. Excel's Formula Auditing tools do that job: Trace Precedents draws arrows to every cell a formula uses, Trace Dependents shows what a cell feeds, Evaluate Formula runs a calculation one step at a time, and the Watch Window keeps an eye on a key number while you fix things. This lesson uses a small three-sheet sales model with two planted mistakes and one error value, so you can practise every tool on a real problem. All the tools live on the Formulas tab, in the Formula Auditing group.
The practice model: three sheets and two hidden mistakes
Download the practice workbook and open it in desktop Excel. It has three sheets that feed each other:
- Inputs: price per unit ($25), sales tax rate (8%) and an empty "Orders this period" cell.
- Practice: units sold for January to April, with Revenue (units × price), Tax (revenue × tax rate) and Total.
- Summary: total revenue, total tax, the grand total, the monthly average and revenue per order, all pulled from the other two sheets.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Month | Units | Revenue | Tax | Total |
| 2 | Jan | 120 | $3,000.00 | $240.00 | $3,240.00 |
| 3 | Feb | 95 | $7.60 | $0.61 | $8.21 |
| 4 | Mar | 140 | $3,500.00 | $280.00 | $3,780.00 |
| 5 | Apr | 110 | $2,750.00 | $220.00 | $2,970.00 |
| 6 | Total | 465 | $9,257.60 | $740.61 | $9,998.21 |
The grand total should be $12,555.00, not $9,998.21. February is obviously off, but in a real workbook with hundreds of rows you'd only see a total that "feels low". There's also a second problem you can't see at all, and Summary!B6 shows #DIV/0!. Let's find all three.
Trace Precedents step by step
A precedent is a cell a formula uses. If D10 contains =B5, then B5 is a precedent of D10. Trace Precedents draws arrows from the precedents to the formula.
- Go to the Summary sheet and click B4 (Grand total).
- Click Formulas > Trace Precedents. Because B4 gets its value from another sheet (
=Practice!E6), Excel draws a black dashed arrow to a small worksheet icon. - Double-click the dashed line. The Go To dialog opens and lists the reference on the other sheet, Practice!$E$6. Double-click it to jump there.
- On Practice, with E6 selected, click Trace Precedents. A blue box outlines E2:E5 with an arrow to E6.
- Click Trace Precedents again. Excel goes one level further back and draws arrows from columns C and D into the totals in E2:E4. E5 gets no arrows at all, which is a clue we will come back to. Each extra click adds another level. When there's nothing left to trace, Excel beeps.
- Now click C3 and click Trace Precedents. You get a blue arrow from B3 and a dashed arrow to a sheet icon. Double-click the dashed arrow: the Go To list says Inputs!$B$3. That's the tax rate, not the price in B2.
That's mistake one: February multiplies 95 units by 8% instead of $25. It happened because the formula used a relative reference to the Inputs sheet; C2 and C4 correctly use Inputs!$B$2 (see absolute and relative references).
Arrow colours. Microsoft's rules: blue arrows come from cells with no errors, red arrows come from cells that cause an error, and a black arrow to a worksheet icon means the other end is on another sheet or in another workbook (which must be open).
Two faster ways to see precedents:
- F2. Click a formula cell and press F2 (or click in the formula bar). Each reference in the formula gets its own colour, and a box of the same colour outlines that cell on the sheet. It's the quickest check for a formula on the same sheet.
- Ctrl+[ in Windows Excel selects the cells the formula refers to directly, jumping to the other sheet if needed. Ctrl+] selects the cells that refer to the active cell. These select cells; they don't draw arrows. You can do the same from Home > Find & Select > Go To Special, choosing Precedents or Dependents with Direct only or All levels.
Trace Dependents and Remove Arrows
A dependent is a formula that uses a cell. Trace Dependents works forward: "if I change this input, what changes?"
- Click Formulas > Remove Arrows to clear the old arrows.
- Go to Inputs and click B2 (the price).
- Click Formulas > Trace Dependents. Every formula that uses the price is on another sheet, so you get a dashed arrow to a sheet icon.
- Double-click the dashed arrow. The Go To list shows Practice!$C$2, $C$4 and $C$5 (plus the corrected copies on the Answers sheet). Practice!C3 isn't there, which confirms February doesn't use the price.
- Click Trace Dependents again to follow the chain further, just like with precedents.
Remove Arrows clears every arrow on the sheet. The small arrow next to it offers Remove Precedent Arrows and Remove Dependent Arrows, which take away one level at a time, starting with the farthest. Arrows also disappear by themselves when you edit the formula, insert or delete rows or columns, or move cells, so trace again after a change.
Show Formulas and FORMULATEXT: spot a typed-over total
Arrows show where numbers come from, but they won't tell you that a formula is missing. Press **Ctrl+** (hold Ctrl and press the grave accent key, under Esc), or click **Formulas > Show Formulas**. Every cell now shows its formula. Look down column E: E2, E3 and E4 show =C2+D2 and so on, but **E5 shows 2970**. Someone typed the April total over the formula. The number happens to be right today, but it won't change if April's units do. That's mistake two. Press Ctrl+ again to switch back. The formulas lesson covers Show Formulas in more detail.
You can also audit with formulas, which works in every version of Excel. The Answers sheet uses two functions:
=FORMULATEXT(Practice!C3)shows a cell's formula as text:=B3*Inputs!B3.=ISFORMULA(Practice!E5)returns FALSE when a cell holds a typed value instead of a formula.
| G | H | I | J | |
|---|---|---|---|---|
| 1 | Practice formula in C | C is a formula? | What's in Practice E | E is a formula? |
| 2 | =B2*Inputs!$B$2 | TRUE | =C2+D2 | TRUE |
| 3 | =B3*Inputs!B3 | TRUE | =C3+D3 | TRUE |
| 4 | =B4*Inputs!$B$2 | TRUE | =C4+D4 | TRUE |
| 5 | =B5*Inputs!$B$2 | TRUE | Typed value: 2970 | FALSE |
Evaluate Formula: step through a calculation
Evaluate Formula shows a formula being worked out one piece at a time, which is ideal for long nested formulas.
- Click Practice!C3.
- Click Formulas > Evaluate Formula. The dialog shows the formula with the next part to be worked out underlined.
- Click Evaluate repeatedly and watch it change:
| Click | Evaluation box shows |
|---|---|
| Start | =B3*Inputs!B3 (B3 underlined) |
| Evaluate | =95*Inputs!B3 |
| Evaluate | =95*0.08 |
| Evaluate | 7.6 |
- Click Restart to go again, or Close.
Step In opens a referenced cell's own formula (handy when the underlined part is another formula), and Step Out goes back. Microsoft notes a few limits: parts of IF and CHOOSE that aren't used show #N/A, a blank reference shows 0, and functions that recalculate every time (RAND, OFFSET, INDIRECT, NOW, TODAY and a few others) can show results that differ from the cell. The AI and Copilot lesson uses the same tool to check formulas an AI wrote.
Watch Window: keep an eye on the total
The Watch Window is a floating box that shows chosen cells' values while you work somewhere else.
- Click Formulas > Watch Window.
- Click Add Watch, select Summary!B4, and click Add. The window shows the workbook, sheet, cell, value ($9,998.21) and formula.
- Now fix the mistakes. On Practice, type
=B3*Inputs!$B$2in C3 and=C5+D5in E5. - Watch the grand total jump to $12,555.00. The two mistakes were hiding $2,556.79.
On a Mac, open the Watch Window first and then select the cell to add. Double-click an entry to jump to its cell; to remove one, select it and click Delete Watch. You can drag the window or dock it at the edge of the screen. A cell can only be watched once, and cells in another workbook only show while that workbook is open.
Error Checking and the green triangles
Excel checks formulas in the background and marks possible problems with a small triangle in the top-left corner of the cell (green by default). Select the cell and click the warning icon next to it to see what's wrong and choose a fix or Ignore Error.
In the practice file, Summary!B6 shows #DIV/0! because its formula, =Practice!C6/Inputs!B4, divides by the empty Orders cell.
| A | B | |
|---|---|---|
| 1 | Measure | Value |
| 2 | Total revenue | $9,257.60 |
| 3 | Total tax | $740.61 |
| 4 | Grand total | $9,998.21 |
| 5 | Average total per month | $2,499.55 |
| 6 | Revenue per order | #DIV/0! |
Click Formulas > Error Checking to step through every flagged cell in the sheet with Next. With C3 already fixed, type 155 in Inputs!B4 and B6 shows $75.00 ($11,625 of revenue divided by 155 orders). Practice!C3 should also show a triangle before you fix it, because its formula doesn't match the cells above and below it (the "inconsistent formula" rule).
To choose what Excel checks, go to File > Options > Formulas (on a Mac, Excel > Preferences > Error Checking). The rules include cells with formulas that result in an error, formulas inconsistent with other formulas in the region, formulas that omit cells in a region, numbers formatted as text or preceded by an apostrophe, and formulas referring to empty cells. There you can also change the triangle colour and reset errors you ignored. For a guide to each error value, see Excel errors and fixes.
What works on a Mac and in Excel for the web
| Tool | Windows | Mac | Excel for the web |
|---|---|---|---|
| Show Formulas | Ctrl+` or Formulas tab | Ctrl+` or Formulas tab | Formulas > Show Formulas |
| Coloured references (F2 / formula bar) | Yes | Yes | Yes (click in the formula bar) |
| FORMULATEXT, ISFORMULA | Yes | Yes | Yes |
| Trace Precedents / Dependents, Remove Arrows | Yes | Yes, on the Formulas tab | Not documented for the web |
| Watch Window | Yes | Yes (Microsoft 365, Excel 2021 and 2024 for Mac) | Not documented for the web |
| Error Checking | Yes | Yes; rules in Preferences | Not documented for the web |
| Evaluate Formula | Yes | Microsoft lists Excel 2021 and 2024 for Mac; if it's missing, update Excel | Not documented for the web |
| Ctrl+[ and Ctrl+] | Yes | Use Go To Special (Control+G, then Special) | Not documented for the web |
Microsoft's help pages for the arrows, the Watch Window, Error Checking and Evaluate Formula cover only the desktop apps. In Excel for the web, use Show Formulas, the coloured references and FORMULATEXT, or open the file in the desktop app to trace.
Tracing not working? Press Enter or Esc to leave edit mode, ungroup any grouped sheets, and check File > Options > Advanced > For objects, show: All (the arrows are objects). If Excel beeps, it has traced every level, or the item can't be traced: text boxes, charts, pictures, PivotTables, named constants and closed workbooks.
Try it yourself
Download the practice workbook. The Your task sheet walks you through it:
- On Summary, trace B4's precedents and follow the dashed arrow to Practice!E6.
- Trace E6 twice, then trace C3 and find the Inputs!$B$3 reference.
- Press Ctrl+` and spot the typed 2970 in E5.
- Trace Inputs!B2's dependents and notice C3 is missing.
- Evaluate Practice!C3 step by step.
- Add Summary!B4 to the Watch Window, fix C3 and E5, and watch it reach $12,555.00.
- Use Error Checking on Summary!B6, then type 155 in Inputs!B4 to get $75.00.
- Compare with the Answers sheet.
Common mistakes
- Leaving arrows on and wondering why they vanished. Any edit removes them. Trace again.
- Missing the dashed arrow. Off-sheet references don't get a normal arrow. Double-click the dashed line.
- Tracing a closed workbook. Open it first.
- Trusting a total that "looks right". E5 showed the right number but had no formula. Use Show Formulas or ISFORMULA.
- Ignoring every green triangle. Read the message first; an inconsistent formula is often a real mistake.
- Fixing C3 without the dollar signs.
=B3*Inputs!B2works until you copy it. UseInputs!$B$2.
What's next
You can now follow any number back to its inputs, step through a formula and catch typed-over totals. The previous lesson, ISBLANK and logic checks, builds formulas that flag bad data automatically. Next, summation and SUMPRODUCT covers totals that multiply and add in one step. For every shortcut in one place, see the printable Excel shortcuts, or go back to the full Excel course.
Frequently asked questions
How do I trace precedents in Excel?
Click the cell with the formula, then go to Formulas > Trace Precedents (in the Formula Auditing group). Blue arrows point from every cell the formula uses to the formula. Click Trace Precedents again to see the next level back. Click Remove Arrows when you're done.
How do I trace precedents to another sheet?
When a formula uses a cell on another sheet, Excel draws a black dashed arrow to a small worksheet icon instead of a normal arrow. Double-click the dashed line (it's thin, so point carefully) to open the Go To dialog, which lists the cells on the other sheet. Double-click one to jump straight to it. If the cell is in another workbook, that workbook must be open.
Why is Trace Precedents greyed out or not working?
First check that you aren't still editing a cell (press Enter or Esc). Then check File > Options > Advanced: under Display options for this workbook, For objects, show must be set to All, because the arrows are drawn as objects. Grouped sheets and a protected sheet can also block the buttons. If Excel just beeps, it has already traced every level, or the item can't be traced (a picture, chart, PivotTable, named constant or closed workbook).
What is the shortcut for trace precedents?
In Windows Excel, Ctrl+[ selects the cells a formula refers to directly (even on another sheet) and Ctrl+] selects the cells that refer to the active cell. These select cells rather than drawing arrows. For arrows, use Formulas > Trace Precedents.
What is the difference between precedents and dependents?
Precedents are the cells a formula uses. Dependents are the formulas that use a cell. If D10 contains =B5, then B5 is a precedent of D10 and D10 is a dependent of B5. Trace Precedents looks backward from a formula; Trace Dependents looks forward from an input.
How do I show all formulas in Excel?
Press Ctrl+` (the grave accent key, under Esc) or click Formulas > Show Formulas. Every cell shows its formula instead of its result. Press it again to switch back. The shortcut is the same on a Mac, and Excel for the web has the Show Formulas button on the Formulas tab.