Watch Window, Evaluate Formula and error checking: practice exercises
Watch Window, Add Watch, Evaluate Formula, Step In, Error Checking, green triangles, Ignore Error, error checking rules. 10 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.
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 Watch Window, Evaluate Formula and error checking lesson
How it works
Three more of Excel's checking tools. The Watch Window keeps an eye on cells that are off the screen. Evaluate Formula works a formula out one step at a time, so you can see where it goes wrong.
And Excel's error checking marks cells that look wrong with a small green triangle: click the cell, and the ⚠ button says what's wrong and offers a fix.
The Watch Window
A budget has its grand total in F40, off the bottom of the screen. While you change the numbers in row 3, you want to see what happens to it. Click F40 and choose Watch Window, then Add Watch, Add.
The Watch Window lists each watched cell: its workbook, sheet, name (if it has one), cell, value and formula. Change B3 and the value in the window changes straight away. To stop watching a cell, click its line and choose Delete Watch.
Windows: Formulas, Formula Auditing, Watch Window.
Mac: Formulas, Watch Window.
Evaluate Formula
E2 holds =IF(B2+C2>=D2,"Met","Not met") and says Not met. Why? Click E2 and choose Evaluate Formula. The formula shows with the next part underlined. Click Evaluate and the underlined part is replaced by its value:
IF(B2+C2>=D2,…) → IF(34+C2>=D2,…) → … → IF(79>=85,…) → IF(FALSE,"Met","Not met") → "Not met".
So 34 + 45 is 79, under the target of 85. At the end, Evaluate becomes Restart.
Windows: Formulas, Formula Auditing, Evaluate Formula.
Mac: Formulas, Evaluate Formula.
Step In and Step Out
When the underlined part is a cell that holds a formula of its own, Step In opens that formula in a second box, so you can work through it too. Step Out goes back, with its value in place.
That's how to find where an error starts: D6 adds D2 to D5 and shows #DIV/0!. Step In on each one, and D4 is =B4/C4 with C4 empty: that's the cell to fix. (Error Checking ▾, Trace Error draws red arrows back to it too.)
Green triangles and the ⚠ button
Excel puts a small green triangle in the corner of a cell that looks wrong. Click the cell and a ⚠ button appears; its menu says what Excel found and what you can do:
- Inconsistent Formula: the formula breaks the pattern of the ones around it. Copy Formula from Above fixes it.
- Formula Omits Adjacent Cells: a range stops just before more numbers, such as a new week under a SUM. Update Formula to Include Cells.
- Number Stored as Text: Convert to Number, unless it's a code like 01234 that should stay text.
- Cells that show an error, such as #DIV/0!.
If the cell is right, choose Ignore Error: the triangle goes for good.
Error Checking and its rules
Formulas, Error Checking goes through every flagged cell in turn. It shows the cell, its formula and Excel's name for the problem. Its buttons are Next and Previous, Ignore Error, Edit in Formula Bar and Show Calculation Steps (Evaluate Formula). At the end, Excel says the error check is complete.
Which problems get a triangle is set by the error checking rules. Most are on; Formulas referring to empty cells is off until you tick it. Reset Ignored Errors brings back every triangle you ignored.
Windows: File, Options, Formulas, Error checking rules (or Options… in the Error Checking box).
Mac: Excel menu, Preferences, Error Checking.
What you'll practise
- Keep the grand total in F7 in view while you work: click F7, then Formulas, Watch Window, and Add Watch.
- Add watches on B9 (the Q1 total) and F9 (the grand total). Then change B3 to 8200 and see both watched values change.
- The Watch Window has two watches. Delete the watch on C6 and keep the one on F6: click its line in the Watch Window, then Delete Watch.
- Click E4 and choose Formulas, Evaluate Formula. Click Evaluate until the whole IF(…) is underlined. What did the test B4+C4>=D4 come to? Close the box and type TRUE or FALSE in G1.
- D6 shows #DIV/0!. Click D6, Evaluate Formula, and use Step In on each cell it adds until you find the one where the error starts. Type that cell's address in F1.
- One total in column D has a green triangle: its formula doesn't match the ones above and below it. Click it, click the ⚠ button, and choose Copy Formula from Above.
- A new week went in at the bottom, but the total in B10 wasn't changed. It has a green triangle. Click it, click ⚠, and choose Update Formula to Include Cells.
- The part codes in column A start with 0, so they're kept as text on purpose, but Excel marks each one with a green triangle. Select A2:A6, click ⚠, and choose Ignore Error.
- Add cell E8 to the Watch Window.
- Configure Excel's error checking rules so that formulas that refer to empty cells are flagged.
Guide with worked examples: Excel formula auditing: how to check a spreadsheet's formulas