- Learn
- Computer Science & IT
- Digital Skills
- Spreadsheet Formulas and Functions
- Troubleshooting Formulas
Checking and Troubleshooting Formulas
IntermediateLesson 7 of 7 in Spreadsheet Formulas and Functions Course
What you will learn
- Read what each error value says about a formula, follow an error back to the cell where it starts, fix the cause instead of hiding it, and spot the wrong results that show no error at all.
- Recognize each error value and its usual causeName the error values Excel and Google Sheets return, explain what each one means and connect it to the mistakes that most often produce it.
- Follow an error to its source and fix the causeTrace an error value back through the chain of formulas to the cell where it starts, repair the cause there, and use error-handling functions only where an error is expected.
- Spot silent errors that return wrong numbersRecognize formulas that return a believable but wrong result, and find the most common causes: text numbers, incomplete ranges, wrong references, typed-over formulas, wrong units and rounding.
- Recognize each error value and its usual cause
- Use the Formula Auditing tools in Excel to see how cells depend on each other, follow a calculation one step at a time, keep key results in view and let the program flag suspicious formulas.
- Trace precedents and dependentsShow which cells feed a formula and which formulas rely on a cell, follow these links across levels and sheets, and use them before changing or deleting anything.
- Evaluate a formula step by stepUse Evaluate Formula and the F9 key to see the intermediate results of a formula, find the step where it goes wrong and know the limits of these tools.
- Keep key cells in view with the Watch WindowAdd important results and checks to the Watch Window and follow how their values change while you edit inputs anywhere in the workbook.
- Use error checking rulesLet background error checking flag suspicious cells, understand each rule, act on the flags and know when a flag can safely be ignored.
- Trace precedents and dependents
- Choose when formulas recalculate, recognize stale results, find and remove accidental circular references, and use iterative calculation safely when a model needs a loop.
- Choose when formulas recalculateSet the calculation mode, recalculate with the right command, and avoid reading or sharing results that are out of date.
- Find and remove accidental circular referencesRecognize a circular reference, find every cell in the loop and rewrite the formulas so that no result depends on itself.
- Use iterative calculation on purposeRecognize models that need a deliberate loop, set iterative calculation correctly, check that the result settles, and prefer a direct formula when one exists.
- Choose when formulas recalculate
- Set data validation rules so that input cells accept only sensible entries, guide users with messages and alerts, and find invalid data that got past the rules.
- Create validation rules for input cellsChoose the right validation type and condition for each input, including lists and custom formulas, and add a message that tells users what to enter.
- Set error alerts and catch invalid data that got inChoose how strictly invalid entries are handled, write clear alert messages, and find data that breaks the rules because it was pasted, imported or entered before the rule existed.
- Create validation rules for input cells
- Explain how spreadsheet errors arise and what they can cost, design workbooks that are easy to check, and build check cells and tests that catch mistakes before results are used.
- Understand how spreadsheet errors happen and what they costDescribe the main types of spreadsheet error, learn from well-documented failures and judge which spreadsheets need the most checking.
- Design spreadsheets that are easy to checkLay out inputs, calculations and outputs clearly, keep formulas consistent and simple, and document the workbook so that others can check and maintain it.
- Build check cells and test the modelAdd check formulas that confirm totals, counts and balances agree, combine them into one visible status, and test the workbook with inputs whose answers are known.
- Understand how spreadsheet errors happen and what they cost
Troubleshooting Formulas study guide
1Diagnose error values and silent formula errors
A spreadsheet can fail with an error code or with an ordinary-looking number. Reading the code narrows the search, while tracing its inputs shows where the failure began. Silent mistakes need a wider look at data types, references, units and calculation settings. You will learn to distinguish these problems and choose a repair that keeps the formula useful when the inputs change.
1.1 Recognize each error value and its usual cause
An error value tells you why a formula could not return a valid answer. Read the code before changing anything: a missing lookup match needs a different repair from a deleted reference. An error can also travel into formulas that use the failed cell.
Read the familiar error codes
| Error | What to investigate | Example |
|---|---|---|
#DIV/0! | A zero or empty divisor | =B2/C2 when C2 is empty |
#N/A | A value that is unavailable | An exact lookup with no matching code |
#NAME? | Text Excel does not recognize | =SUMM(B2:B9) |
#VALUE! | An unsuitable type of value | Multiplying text such as "12 kg" |
#REF! | An invalid cell reference | A formula pointing to deleted cells |
#NUM! | An invalid or excessively large number | =SQRT(-4) |
#NULL! | An empty intersection of ranges | =SUM(B2:B5 C2:C5) |
For division, check the divisor itself. With revenue of 1,250 in B2 and no mass entered in C2, =B2/C2 returns #DIV/0!. Entering 50 kg gives 25 per kg. AVERAGE also divides: a range containing no numbers has a numeric count of zero and returns this error.
For #N/A, inspect both lookup keys. "P-105" and "P-105 " differ because the second contains a trailing space. A number and a text code can look alike while failing to match. A genuinely absent item needs a missing-data decision; NA() can deliberately mark that absence.
Inspect the formula and its inputs
#NAME? can come from an undefined range name, a newer function unavailable in an older Excel version, or a missing colon in =SUM(B2B9). Text needs straight quotation marks: =IF(A2="Yes",1,0) compares A2 with the word "Yes". Without the quotes, Excel tries to interpret Yes as a name.
With #VALUE!, look beyond appearance. A space in an apparently empty cell is still text. Text that Excel can read as a number behaves differently: ="12"*3 returns 36, while a reference to "12 kg" multiplied by 3 fails. Keep the unit in the heading and the numeric value in the input cell.
A deleted column can turn =B2*C2 into =B2*#REF!. Undo immediately to restore the deleted cells; otherwise rebuild the intended reference. An out-of-range lookup index also fails: =VLOOKUP(A2,F2:G50,3,FALSE) requests a third column from a two-column range.
#NUM! includes impossible real-number calculations and formula results beyond Excel's capacity, about . =10^309 is too large. Search-based functions such as IRR and RATE can also return #NUM! when they fail to find an answer.
The space in =SUM(B2:B5 C2:C5) means intersection, not addition. The two columns share no cells. To add both ranges, use =SUM(B2:B5,C2:C5); to sum the whole block, use =SUM(B2:C5).
Distinguish display, array and service problems
##### is a display problem, not an error value. Double-click the right edge of the column heading to widen it. If the hashes remain because a date or time is negative, inspect the calculation or use a number format that can display the result.
#SPILL! means a multi-cell result cannot fill its intended area. Select the formula to see the outlined spill range; check for occupied cells, merged cells or a formula placed inside an Excel table. #CALC! can arise when FILTER finds no matches and has no if_empty argument.
Linked data can produce #FIELD!, #CONNECT!, #BLOCKED!, #BUSY! or #UNKNOWN!. Read the attached message; #BUSY! commonly clears when data arrives. Google Sheets uses the core error codes too, plus #ERROR! for unreadable formula syntax. A blocked array expansion in Sheets uses #REF! with an overwrite message. Point at an error marker to read its explanation.
Key Takeaways
- Read the error code and its message before deciding what to repair.
- Check lookup keys, value types and reference ranges as well as the formula spelling.
- A space between ranges means intersection; a comma separates arguments.
- Hashes can mean insufficient column width or a negative date or time.
- An array needs a clear output area; an Excel spill formula must sit outside a table.
- A service error may require checking data availability instead of rewriting arithmetic.
1.2 Follow an error to its source and fix the cause
The first error you notice may be a total several steps away from the cause. A missing lookup result in D5 can make =SUM(D2:D9) return #N/A; a dashboard that uses that total then shows the same error. Repairing only the dashboard leaves the failed lookup in place.
Follow the chain upstream
- Read the error code in the cell you noticed.
- Read that cell's formula and identify its inputs.
- Follow the inputs backward until you reach the first failing calculation whose own inputs do not already contain the error.
- Repair that calculation or its source data.
- Check the totals and other results downstream.
In Excel, Formulas > Error Checking (arrow) > Trace Error helps reveal the route. If a total contains an error from a detail row, inspect that row before editing the total. For a lookup, check whether the code exists, whether extra spaces have been imported and whether both tables store the key in the same form.
Handle an expected absence narrowly
| Tool | Errors it catches | Useful purpose |
|---|---|---|
IFERROR(value,replacement) | Any error value | A deliberately chosen general fallback |
IFNA(value,replacement) | Only #N/A | A missing lookup result |
XLOOKUP's if_not_found argument | No match | A missing item in that lookup |
For example, =XLOOKUP(A2,Codes,Prices,"Not listed") labels an absent code while allowing other kinds of failure to remain visible. Test the lookup successfully before adding its fallback.
A broad fallback can conceal a broken formula. In =IFERROR(VLOOKUP(A2,F2:G50,3,FALSE),0), the lookup requests a third column from a two-column range. It returns #REF!, and IFERROR hides that fault as zero. Rebuild the lookup range or column index; the replacement has made the total look usable without fixing it.
For a zero divisor, decide what zero means in the model. =IF(C2=0,"",B2/C2) leaves the result empty-looking when the quantity is zero. That decision is appropriate when a rate is unavailable, but a real zero result has a different meaning from a missing rate.
Choose a replacement that later formulas can use
A substituted zero is a number. It counts in COUNT and in the denominator of AVERAGE. If the known values are 8 and 12, adding a fallback zero changes their average from 10 to about 6.67. That may falsely treat missing information as a measured zero.
An empty text string, "", is ignored by SUM and AVERAGE when it is in a referenced cell. It is still text: if E2 returns "", =E2+1 returns #VALUE!. Check how the result will be used before choosing a fallback.
Keep missing and failed data visible
ISERROR tests for any error, ISNA for #N/A, and ISERR for errors other than #N/A. They return TRUE or FALSE. The check =SUMPRODUCT(--ISERROR(D2:D500)) counts error cells so a hidden or distant failure can trigger a warning.
=AGGREGATE(9,6,D2:D500) sums the range while ignoring errors: 9 selects SUM and 6 selects the ignore-errors option. Use this when error rows are expected and keep an error count beside the total. Otherwise the total can quietly omit a failed row.
Typing the expected number over an error removes the formula. Its dependents may look right immediately, but the typed value will stay fixed when the inputs change. Restore the working calculation and then retest the affected outputs.
Key Takeaways
- Follow an error backward to its first failing calculation, then check downstream results.
- Use a lookup-specific fallback when the expected problem is a missing match.
- Zero and empty text affect later calculations differently.
- Pair an error-skipping total with an error count.
- Typing over a formula can turn a visible error into a silent one.
1.3 Spot silent errors that return wrong numbers
A silent error returns a believable number that is wrong. Some causes trigger Excel's error checking, but many need a comparison, a check formula or a review of the calculation's meaning. Start with whether the result makes sense, then inspect the data and references that produced it.
Check values that look like numbers
Suppose A2:A5 contain 120, 80, 45 and 55, with 45 stored as text. =SUM(A2:A5) returns 255 because it skips the text cell. Adding the cells with =A2+A3+A4+A5 returns 300 because arithmetic converts that text number. The disagreement points to a data-type problem.
Default left alignment and a warning triangle are clues. COUNT returns 3 numeric cells while COUNTA returns 4 nonempty cells. Inspect the difference, then use Convert to Number, VALUE, or Data > Text to Columns. A number format alone changes how a cell looks; it does not reliably convert imported text into a numeric value.
Inspect ranges and copied references
=SUM(B2:B9) leaves out a new value typed in B10. Inserting records inside the existing range helps keep references aligned. An Excel table gives a clearer growing source: =SUM(Sales[Amount]) includes new table rows automatically.
A copied share formula needs its total to stay fixed. =B2/B10 becomes =B3/B11 one row down. Use =B2/$B$10 to let the numerator move while keeping the denominator on B10. Select a reference and press F4 to cycle its relative, absolute and mixed forms.
A lookup can return a wrong match without an error. VLOOKUP defaults to approximate matching when its fourth argument is omitted. Use FALSE or 0 for exact matching, particularly for codes in an unsorted list. XLOOKUP defaults to exact matching.
Find hidden assumptions and overrides
A hard-coded override is a typed value that replaces a formula. Turn on Show Formulas with Ctrl+` to find values interrupting a formula pattern. Home > Find & Select > Go To Special > Constants, with only Numbers selected, highlights typed numbers for inspection; legitimate inputs will be selected too.
Constants buried inside formulas are another risk. =B2*1.08 hides an 8% surcharge. Put the rate in a labeled cell F1 and use =B2*(1+$F$1). A change to F1 then updates every linked calculation, and a reviewer can find the assumption.
Check units, rounding and freshness
A discount of 15% is stored as 0.15. If C2 contains 15 and B2 contains 200, =B2*(1-C2) returns −2,800. Entering 15% gives 170. A negative discounted price is a useful clue to investigate the scale of the percentage input. Keep units in headings, such as "Mass (kg)", so a value can be interpreted correctly.
Three cells storing 1.004 each display 1.00 with two decimal places. Their sum is 3.012 and displays 3.01. Formatting has rounded the view, not the stored amounts. If invoice line amounts must be rounded to hundredths before totaling, use =ROUND(B2*C2,2) on each line. Set precision as displayed permanently changes stored values throughout the workbook and cannot restore the discarded digits.
Finally, check Formulas > Calculation Options. Manual mode can leave old results on screen after inputs change. Recalculate before judging whether a formula has repaired the problem; an unchanged total may be stale instead of logically wrong.
Key Takeaways
- Compare numeric counts with nonempty counts when imported values may be text.
- Check the end of a range and the references produced by copying.
- Use exact lookup matching for exact identifiers.
- Keep assumptions in labeled input cells and inspect breaks in formula patterns.
- Number formatting does not change the stored calculation precision.
- Recalculate before interpreting a result after an input change.
2Inspect formulas with the auditing tools
Auditing is easier when you can see both the calculation route and its intermediate values. Excel provides several views of the same workbook: dependency arrows, step-by-step evaluation, watched cells and warning flags. Each answers a different question. You will use them to investigate a result, inspect the impact of a change and judge whether a suggested repair matches the workbook’s intended logic.
2.1 Trace precedents and dependents
A formula has two directions of connection. Precedents feed values into it; dependents use its result. Follow precedents to explain an output. Follow dependents to see what a proposed input change or deletion could affect.
Draw the links one level at a time
Select a formula cell and choose Formulas > Formula Auditing > Trace Precedents. The first click shows its direct inputs. Click again to add the inputs of those cells. A range used as one argument appears as an outlined block with one arrow.
For example, B2 contains 60, C2 contains 1.50, D2 contains =B2*C2, E2 contains 40 and F2 contains =D2-E2. D2 returns 90; F2 returns 50. Trace Precedents on F2 first shows D2 and E2. A second click reveals B2 and C2 feeding D2. B2 is an indirect precedent of F2 because its effect passes through D2.
Now select C2 and choose Trace Dependents. The first level reaches D2. The next reaches F2. Changing a unit price therefore affects both revenue and profit. Remove Arrows clears the display; its menu can remove just precedent or dependent arrows.
Read colors and links to other sheets
| Arrow | Meaning | Next action |
|---|---|---|
| Blue | A link between cells without errors | Follow the calculation |
| Red | A cell causing an error | Inspect that source |
| Black dashed, with a worksheet icon | A link to another sheet or workbook | Double-click the arrow to open the reference list |
Choose an entry in the reference list to go to the linked location. Open a linked workbook before tracing into it. A black dashed arrow does not itself mean the formula is broken; it tells you that part of the route leaves the current sheet.
Choose a quick inspection view
Press F2 while a formula cell is selected. Excel colors the references and draws matching borders around their ranges. This is useful for seeing whether a total stops one row too soon. Show Formulas, Ctrl+`, displays formulas across the sheet so you can compare neighboring patterns.
Windows shortcuts select connected cells without drawing arrows. Ctrl+[ selects direct precedents; Ctrl+Shift+{ selects all levels of precedents. Ctrl+] selects direct dependents; Ctrl+Shift+} selects all levels of dependents. Go To Special > Precedents or Dependents also offers Direct only and All levels.
Check the impact before deleting
Trace dependents before removing an assumption or column. A result may feed several sheets, even when the current sheet appears to use it nowhere. If Excel finds no dependents in the open workbooks, check whether other workbooks might link to the cell. Closed workbooks are outside this search.
The tracing tools also have limits for charts, pictures, text boxes, PivotTables and named constants. Arrows disappear after edits that change the formula or move, insert or delete cells, so redraw them after a repair. In Google Sheets, edit a formula to see colored references and matching range outlines; use these and the formula text to follow the inputs.
Key Takeaways
- Precedents supply a formula; dependents use its result.
- Repeat a trace command to reveal another level of links.
- A black dashed arrow leads to a reference on another sheet or workbook.
- Open linked workbooks before tracing into them.
- Trace dependents before deleting an input or calculation.
- Redraw arrows after changing the structure.
2.2 Evaluate a formula step by step
A long formula can be valid in syntax and still use the wrong input or branch. Evaluate Formula lets you inspect intermediate results. The useful question is where the calculation first stops matching what the model is meant to do.
Step through the expression
In Windows Excel, select one formula cell, then choose Formulas > Formula Auditing > Evaluate Formula. An underline marks the next expression to evaluate. Click Evaluate to replace it with its result, shown in italics, and repeat.
If the underlined reference contains another formula, Step In opens that calculation. Step Out returns to the original formula, and Restart begins the evaluation again. Use the controls to connect a surprising intermediate value to its source cell.
Consider B2 = 200, C2 = 15 and D2 = =B2*(1-C2). C2 is supposed to hold a 15% discount. Evaluation reveals the sequence:
- B2 supplies 200.
- C2 supplies 15.
1-C2gives −14.- Multiplying gives −2,800.
The unexpected −14 identifies the input scale as the problem. Entering 15% stores 0.15; the multiplier becomes 0.85 and the final price is 170. Changing the final multiplication would leave the incorrect percentage in the model.
Inspect a decision inside a formula
With B2 = 60 and C2 = 1.5, =IF(B2>=50,B2*C2,0) first tests whether 60 is at least 50. The condition is TRUE, so the selected calculation returns 90. If an output unexpectedly returns 0, inspect the condition and its inputs before changing the amount formula.
Parts of IF or CHOOSE that are not evaluated may show #N/A in the dialog. Check the branch actually used and the final result before treating that display as an error in the worksheet.
Preview a selected part with F9
While editing in the formula bar, select a complete expression and press F9. For example, selecting B2*C2 shows the product of those cells. F9 replaces the selected text with its current value in the editing view. Press Esc after this preview to keep the formula unchanged; Enter would save the value in place of the selected expression.
This shortcut helps with one expression, while Evaluate Formula preserves the visible sequence of steps. When a formula is still difficult to inspect, split its stages into helper cells or use LET to give the stages clear names.
Interpret the tool's limits
Step In is unavailable for a reference appearing a second time in the expression or pointing to another workbook. A reference to a blank cell appears as zero during evaluation. Volatile functions such as RAND, NOW, TODAY, OFFSET and INDIRECT recalculate during evaluation, so the preview can differ from the value you first saw in the cell.
The error icon's Show Calculation Steps command opens the same evaluation tool for a failed formula. On a Mac, use helper cells or selected-expression previews to expose stages without the Windows Evaluate Formula dialog. In Google Sheets, inspect the result preview while editing, then use helper cells to expose separate stages of a long calculation. Give each helper a clear label so the intermediate value has an obvious meaning.
Key Takeaways
- The underlined expression is the next part Evaluate Formula will calculate.
- Find the first unexpected intermediate result and inspect its inputs.
- Step In opens a referenced formula; Step Out returns to the original.
- After an F9 formula-bar preview, Esc preserves the original expression.
- Blank cells and volatile functions need care when interpreting the preview.
2.3 Keep key cells in view with the Watch Window
The Watch Window keeps important cells visible while you work elsewhere. It is useful when inputs, totals and checks live on different sheets: you can edit an assumption and observe the result without repeatedly switching back to a dashboard.
Add cells worth watching
Open Formulas > Formula Auditing > Watch Window. Choose Add Watch, select the cells, then click Add. The list shows each cell's workbook, sheet, name if defined, address, current value and formula. Each cell can appear once.
Choose a small set that answers a practical question. If you are testing a pricing model, watch the net result and its check status. Watching only the price cell that you are already editing provides little information about what the price affects.
Double-click a watched entry to go to its cell. Select an entry and choose Delete Watch when it is no longer useful. Removing a watch removes the entry from the window; it leaves the worksheet cell in place.
Test an input against a known change
An Inputs sheet contains a quantity of 1,000 and a unit price of 1.50. Costs are 1,100, so the Summary sheet's profit is 400. Add that profit cell to the Watch Window, return to Inputs, and change the price to 1.60.
The price increased by 0.10 on 1,000 units. Revenue rises by 100; with costs unchanged, profit should rise from 400 to 500. Compare this expected movement with the watched result. A value of 400 after recalculation suggests the input is not feeding the output you intended, or the formula has been replaced or changed.
The window displays current calculated values. It does not force recalculation. If Excel is in Manual mode, recalculate before concluding that an input has no effect. Watch a check cell too: a plausible profit can appear beside a failed balance or missing-data check.
Combine watching with tracing
Tracing and watching answer different questions. Trace Dependents shows where an input goes. The Watch Window shows what the selected outputs do when that input changes. Use the route to choose meaningful watches, then change one input at a time and compare the size and direction of the result.
For an intentional circular calculation, watched cells can help you see whether values keep moving after another recalculation. Keep the loop's check visible along with its result so a stopped calculation is not mistaken for a settled one.
Manage a larger review
To add several formula cells, select them first with Go To Special > Formulas, then add the selection as watches. For a focused review, keep the list short enough that the important results remain easy to find.
Watches involving another workbook require that workbook to remain open for its values to be displayed. Keep the workbook and sheet columns visible when cells have similar addresses; "F8" alone does not identify which model you are monitoring.
Key Takeaways
- Watch outputs and checks whose response you need to observe.
- Add a watch, edit an input elsewhere, recalculate and compare with an expected change.
- The Watch Window displays calculated values; it does not force a recalculation.
- Use tracing to find the route and watching to inspect its effect.
2.4 Use error checking rules
A small triangle in a cell's top-left corner is a reason to inspect it. Background error checking looks for suspicious formulas and data patterns. Green is the default marker color, and selecting a flagged cell opens a warning menu with the reason and possible actions.
Know what the rules look for
Under File > Options > Formulas > Error checking rules, Excel can flag:
- Formulas returning error values.
- Inconsistent calculated-column formulas in tables.
- Years written with two digits.
- Numbers stored as text or preceded by an apostrophe.
- Formulas that differ from neighboring formulas.
- Formulas that omit cells in a region.
- Unlocked formula cells.
- Formulas referring to empty cells.
- Invalid data entered in a table.
These rules cover different problems. A number stored as text may already make a total too low. An unlocked formula cell may calculate correctly today but be vulnerable to an accidental overwrite. A two-digit year can make a date's intended century unclear.
Inspect before accepting a suggested fix
Suppose D2:D6 should multiply quantity and price in the same row. D4 contains =B4*C3 while its neighbors follow the pattern =B2*C2, =B3*C3 and so on. Read the column headings and compare the references: D4 uses the price from the previous row.
After confirming the intended pattern, Copy Formula from Above repairs D4 to =B4*C4. If D4 were a deliberate subtotal, the different formula could be correct. Copying blindly would replace valid logic with a normal detail-row calculation.
The warning menu may offer Convert to Number, Edit in Formula Bar, Help on this Error or Show Calculation Steps. Choose the action that addresses the cause. A triangle disappearing only tells you the flag was resolved or dismissed; check the resulting calculation as well.
Work through flags systematically
Formulas > Formula Auditing > Error Checking walks through flagged cells on the active sheet. Use Previous and Next to examine them in order. In Manual mode, press F9 first so that error values reflect the current inputs.
After verifying a deliberate exception, use Ignore Error for that cell. Reset Ignored Errors in the Formulas options brings ignored workbook flags back for another review. This is useful when taking over a file whose previous owner dismissed warnings.
Each rule can be switched on or off. If one rule consistently flags a valid workbook design, adjust that rule after review. Clearing Enable background error checking hides all of these warnings, including ones that could identify new mistakes.
Add checks for what the rules miss
A formula can follow its neighbors perfectly while repeating the same logic error in every row. A total can use the wrong business definition while returning a valid number. Compare important outputs with known answers and independent totals as part of the review.
In Google Sheets, an error marker and its message help diagnose a formula error. Use check formulas, colored references while editing and a review of input data to investigate silent errors.
Key Takeaways
- An error-checking flag identifies a risk or suspicious pattern that needs inspection.
- Check the intended logic before copying a neighboring formula.
- Ignore a verified exception for that cell; reset ignored errors to review them again.
- Keep useful rules enabled and recalculate before checking results.
- A consistent formula pattern can still repeat a logic error.
3Control calculation and circular references
Before judging a formula, make sure its displayed result is current and that its inputs can be calculated in a clear order. Calculation modes control updates, while circular references can prevent that normal order. You will choose a suitable recalculation command, remove accidental loops and inspect deliberate iterations closely enough to tell whether their results have settled.
3.1 Choose when formulas recalculate
A correct formula can display an old result. Calculation mode controls when Excel updates formulas after their inputs change. Check this setting when a result stays fixed unexpectedly, especially after opening a workbook received from someone else.
Choose the right mode
Open Formulas > Calculation Options, or File > Options > Formulas.
| Mode | What updates | Typical use |
|---|---|---|
| Automatic | Formulas affected by a change | Everyday work |
| Automatic Except for Data Tables, also called Partial | Affected formulas, excluding what-if data tables | Models with slow what-if tables |
| Manual | Formulas when you request calculation | Batches of edits in a slow model |
The data tables in the second option are what-if analysis tools. They are different from ordinary Excel tables of records. Automatic is the default and normally keeps results current as you work.
With B2 = 60, C2 = 1.50 and D2 = =B2*C2, the result is 90. In Manual mode, changing B2 to 80 can leave D2 showing 90. After recalculation, D2 becomes 120. The status bar's Calculate message is a clue that results need updating.
Recalculate at the scope you need
Windows Excel offers several commands:
- F9, or Calculate Now, updates changed formulas and their dependents in all open workbooks.
- Shift+F9, or Calculate Sheet, does this for the active sheet.
- Ctrl+Alt+F9 recalculates every formula in all open workbooks, whether changed or not.
- Ctrl+Shift+Alt+F9 rebuilds the dependency information and then recalculates everything.
Use workbook-wide calculation when the result relies on inputs or calculations on other sheets. Rebuilding dependencies is a deeper troubleshooting step, not a substitute for correcting a faulty reference.
Check what opening another workbook can change
Desktop Excel shares the calculation mode across open workbooks. The first workbook opened in a session sets the mode. If that file was saved in Manual mode, later files can also stop updating automatically, even if their own formulas are sound. The setting is saved with each workbook. Excel for the web applies the calculation mode to the current workbook instead.
Choosing Manual automatically selects Recalculate workbook before saving. Clearing that box may speed up saving, but it can leave saved outputs inconsistent with the saved inputs. Recalculate before reading, printing or sharing results, and return to Automatic after the slow editing work is finished.
Understand results that change on recalculation
Volatile functions recalculate whenever the workbook recalculates, even when their inputs have not changed. Examples include NOW, TODAY, RAND, RANDBETWEEN, OFFSET and INDIRECT. Many volatile formulas can make a model slow; random values can also change the outputs during a test.
In Google Sheets, use File > Settings > Calculation to inspect calculation settings. Automatic mode responds to spreadsheet changes. Where Manual mode is available, use the Calculate control to update the document. For periodic functions, inspect the available refresh choices, such as on change, every minute or every hour, so time-based and random results update at the intended frequency.
Key Takeaways
- Manual mode can leave a valid formula showing a stale result.
- F9 updates changed formulas and dependents across open workbooks; Shift+F9 targets the active sheet.
- The first workbook opened sets desktop Excel’s calculation mode for the session.
- Recalculate before using or sharing results.
- Volatile functions run on recalculation even when their inputs have not changed.
3.2 Find and remove accidental circular references
A circular reference means a formula needs its own result to calculate. The route can be direct, hidden in a range or spread across several cells. With iteration off, Excel cannot resolve that dependency in the usual way.
Recognize three common shapes
| Shape | Example | Where the loop closes |
|---|---|---|
| Direct | A1 contains =A1+A2 | A1 uses itself |
| Inside a range | F3 contains =SUM(A3:F3) | The sum includes F3 |
| Indirect | A1 contains =B1+1; B1 contains =A1+1 | Each cell feeds the other |
A circular cell can show zero or its last calculated value. That number can look reasonable even though the dependency is unresolved. Read the warning and status bar instead of using the displayed result to judge the formula.
Locate the route through the cells
Choose Formulas > Formula Auditing > Error Checking (arrow) > Circular References and select a listed address. Read its formula and trace its precedents. For an indirect loop, follow the references until you return to a cell already on the route.
The status bar shows Circular References and may give an address. If the loop is on another sheet, it can show the message without an address. Repair one loop at a time, then check again until the message disappears. More than one loop can exist in the open workbooks.
Repair a total that includes itself
B2:B9 contain eight monthly costs: 420, 380, 515, 290, 610, 455, 330 and 500. The total in B10 was entered as =SUM(B2:B10). B10 is both the result cell and one of its own inputs.
Change the formula to =SUM(B2:B9). Adding the eight costs gives 3,500, and B10 can now calculate from independent inputs. Inspect the final range after correcting it: removing the self-reference but also dropping a valid cost row would leave a silent omission.
Remove a circular dependency in the design
A loop across sheets is harder to see. A Summary total may include a Detail allocation, while that allocation is calculated as a share of the Summary total. Draw the route and identify the quantity the allocation should really use, such as a base amount calculated before the allocation. Build that base from the original inputs and refer to it directly.
Share-of-total columns also need care. A total or percentage row can accidentally join the range it is intended to summarize. Inspect the formulas at the bottom of a copied column, where the row's purpose often changes.
Turning on iterative calculation suppresses the warning and permits loops; it does not repair an unintended dependency. Keep iteration off while removing accidental circles. After the repair, change an input with a known effect, recalculate and verify that the output now responds correctly.
Key Takeaways
- A circular reference can be direct, contained in a range or indirect through other cells.
- Use the Circular References menu and trace the path until it returns to itself.
- Exclude a total cell from the range it sums.
- Rebuild an unintended feedback route from independent inputs.
3.3 Use iterative calculation on purpose
Some models deliberately feed a result back into its own calculation. Iterative calculation repeats the loop, using each round's values in the next round. Use it for a documented model that needs that feedback, and check whether its results actually settle.
Set both stopping limits
In Windows Excel, open File > Options > Formulas > Enable iterative calculation. On a Mac, use Excel > Preferences > Calculation > Use iterative calculation. The setting affects open workbooks, so account for other files in the session.
Maximum Iterations limits the number of rounds; its default is 100. Maximum Change sets the change threshold; its default is 0.001. Excel stops when it reaches the iteration limit or when the changes are smaller than the threshold. A stop at the round limit can leave an unsettled value on screen.
Follow a bonus loop
Profit before a bonus is 50,000 in B2. The bonus in B3 is =0.1*B4, and profit after the bonus in B4 is =B2-B3. The bonus is therefore 10% of profit after paying it.
Starting with a bonus of zero, successive bonus values are 5,000; 4,500; 4,550; 4,545; 4,545.50; 4,545.45; 4,545.455; and 4,545.4545. The eighth change is 0.0005, below 0.001. The bonus approaches 4,545.45 and after-bonus profit approaches 45,454.55 when displayed to hundredths.
A direct formula is available here. Write the relationship as:
Then , so . =0.1*B2/1.1 calculates the bonus without a loop or an iteration setting. Use a direct formula when it expresses the same model clearly.
Distinguish settling from stopping
A loop converges when its values approach one stable value. A bonus set to 100% of after-bonus profit would alternate between 50,000 and zero from the same starting point. It never settles, even though solving the equation directly gives 25,000.
Inspect changes across rounds and recalculate to see whether the result continues moving. Check the original relationship too: the final bonus should equal the chosen share of the resulting after-bonus profit. Choose a threshold appropriate to the quantity being modeled; a displayed two-decimal value can hide movement in stored digits.
Include a restart control
An error can circulate even after its original bad input has been repaired. Add a labeled switch B1 and write the bonus as =IF($B$1=1,0.1*B4,0). Set B1 to 0 and recalculate to clear the loop, then set it to 1 and recalculate to restart. This switch is a circuit breaker.
Keep deliberate loops small, label their cells, document why they exist and watch both the results and a settling check. Iteration also permits accidental loops, so review new formulas for unintended circular references. Google Sheets provides iterative settings under File > Settings > Calculation, using an iteration count and threshold.
Key Takeaways
- Iteration repeats a deliberate loop until a change threshold or round limit stops it.
- Reaching Maximum Iterations can leave a result that has not settled.
- Use a direct formula when it expresses the same relationship.
- A circuit breaker clears and restarts a loop after an error.
- Document intentional loops and inspect for accidental ones.
4Control inputs with data validation
Good input controls begin with a clear description of what a cell should hold. A quantity, discount, date and product code need different rules, and users need messages that explain the allowed entry. You will build those rules, choose an appropriate alert and check existing or pasted values afterward. This connects guidance at entry with checks on the data the workbook actually contains.
4.1 Create validation rules for input cells
Data validation attaches an entry rule to an input cell. A useful rule follows the meaning of the input: whole items, a measured decimal, an allowed date or a choice from a list. An input message tells the person entering data what the rule expects.
Choose a type and condition
Select the input range, then choose Data > Data Tools > Data Validation. On Settings, choose an Allow type, a condition under Data, and any limits. The selection receives the rule.
| Type | Appropriate input |
|---|---|
| Whole number | A count of complete items |
| Decimal | A mass, rate or percentage |
| List | A choice from allowed labels |
| Date or Time | A value in an allowed period |
| Text length | A code with a length limit |
| Custom | A condition expressed by a formula |
| Any value | No entry restriction |
Conditions include between, not between, equal to, not equal to and the greater-than or less-than comparisons, with or without equality. Limits can be numbers, references or formulas. For an end date in C2, choose Date, greater than or equal to, =B2 to require it to be on or after the start date in B2.
A quantity rule of Whole number, between 1 and 500, rejects 0, 501 and 12.5 when paired with an enabled Stop alert. For a discount, Decimal between 0 and 0.3 permits 0% to 30%. Typing 15 fails; typing 15% stores 0.15 and fits the allowed range.
Build a list that stays usable
Choose List and supply comma-separated choices such as Small,Medium,Large in US settings, or a source range such as =$H$2:$H$5. Select In-cell dropdown to display the choices.
A source maintained in an Excel table can grow as items are added to its column. Use a defined name pointing to that table column when needed to supply the validation source. A plain fixed range, including a name that points to fixed cells, needs its end reference updated when a new choice is added below it. Check Formulas > Name Manager when the list uses a name.
Write a custom rule for the active cell
A Custom formula returns TRUE for a valid entry and FALSE for an invalid one. Write it for the active cell of the selection. Relative references then adjust for the other cells; dollar signs keep a common range fixed.
For A2:A500, =COUNTIF($A$2:$A$500,A2)=1 permits an ID only when it occurs once. The count range stays fixed while A2 changes to A3, A4 and so on. =LEN(A2)=8 checks an eight-character code. =ISNUMBER(SEARCH("@",D2)) checks for an @ character, though that character alone is not a complete test of an email address. =AND(C2>=DATE(2026,1,1),C2<=DATE(2026,12,31)) tests the stated date interval without relying on a typed date format.
Guide entry and manage the rules
On Input Message, use a title and a practical direction such as "Discount: enter a percentage from 0% to 30%." This message appears when the cell is selected; it blocks nothing. Ignore blank permits an empty entry.
Use Home > Find & Select > Data Validation to select cells with rules. Paste Special > Validation copies rules without copying contents, and Clear All in the dialog removes a rule. In Google Sheets, use Data > Data validation > Add rule and choose a criterion such as a dropdown, date limit, valid email or Custom formula is.
Key Takeaways
- Choose a validation type that matches the meaning and unit of the input.
- Percentage limits use their stored decimal values.
- Write a Custom formula for the active cell and lock shared ranges.
- A fixed list source needs updating when choices are added outside its range.
- An input message guides entry; the alert settings control rejection.
- Copy rules with Paste Special > Validation.
4.2 Set error alerts and catch invalid data that got in
A rule defines a valid entry; its error alert decides what happens when someone types an invalid one. Validation also needs a follow-up check because copied, imported or existing data can break a rule without producing an entry alert.
Set the right alert behavior
On the Data Validation dialog's Error Alert tab, enable the alert and choose its style.
| Style | What the user can do | Suitable purpose |
|---|---|---|
| Stop | Retry or cancel the invalid entry | A requirement that must hold |
| Warning | Keep the entry with Yes, edit with No, or cancel | An unusual value that needs confirmation |
| Information | Keep with OK or remove with Cancel | Advice that permits exceptions |
Use an enabled Stop alert for a required product code or a quantity that must be whole. Warning and Information allow users to keep values outside the rule. Write a helpful message, such as "Quantity must be a whole number from 1 to 500."
Inspect values after pasting
Validation messages act on direct entry. Existing values are not rejected merely by adding a rule, and changes produced by formulas can also escape an entry alert. Copying or filling can bypass validation. An ordinary paste may also replace the destination's rule with the source cell's rule or lack of one.
Paste Special > Values preserves the destination rule, but do not rely on the paste displaying an alert for every invalid value. After importing or pasting, inspect the stored rules and run a check on the resulting data.
For example, paste the quantities 12, 0, 45, 600, 7.5 and 30 into a column allowing whole numbers from 1 to 500. With that rule retained, Data > Data Validation (arrow) > Circle Invalid Data marks 0, 600 and 7.5. Correcting an invalid value removes its circle. Clear Validation Circles hides the markers without repairing the data.
Repeat the whole rule in a check
A bounds-only test misses a fractional value such as 7.5. It can also miss text. To check B2 while accepting blanks, put this helper in C2 and copy it down:
=IFERROR(OR(B2="",IF(ISNUMBER(B2),AND(B2>=1,B2<=500,B2=INT(B2)),FALSE)),FALSE)
The formula accepts an empty cell. For a numeric entry, it checks both bounds and whether the number equals its integer part. Text entries return FALSE. The outer IFERROR makes an error-valued input return FALSE too, keeping that invalid entry visible as a failed check. Each helper should therefore return TRUE only for a blank or a whole number from 1 through 500.
=COUNTIF(C2:C200,FALSE)=0 gives a single TRUE when none of those helpers reports failure. In the six-value example, three helpers return FALSE. Keep the helper range aligned with the input range as records are added.
Combine controls at different stages
Use validation on inputs, lock formula cells and protect the sheet against accidental overwrites, and show checks near the outputs. Each control catches a different route to a mistake. In Google Sheets, Show a warning keeps an invalid entry and marks it, while Reject the input refuses it; choose the behavior that matches the input's requirement.
Key Takeaways
- Only an enabled Stop alert blocks an invalid direct entry in Excel.
- Warning and Information allow the user to retain an exception.
- After pasting, inspect rules and check the resulting values.
- Circle Invalid Data marks values that break rules still attached to their cells.
- A whole-number check must test the type, the bounds and the integer condition.
5Reduce spreadsheet risk with sound design and checks
A workbook’s reliability depends on its design and review as well as its formulas. Hidden assumptions, incomplete transfers and repeated manual steps can produce believable errors with serious consequences. You will examine documented failures, organize inputs and calculations for inspection, and build checks and tests that make problems visible before someone relies on the outputs.
5.1 Understand how spreadsheet errors happen and what they cost
Spreadsheet risk is the chance that a spreadsheet mistake leads to a wrong decision, loss, report or damaged reputation. The amount of checking should reflect both the chance of an error and the consequences of using a wrong result. A payroll model needs closer review than a personal shopping list.
Recognize different causes
| Error type | What goes wrong | Example |
|---|---|---|
| Mechanical | A slip in typing or selecting | Clicking a price from the previous row |
| Logic | The calculation uses the wrong reasoning | Dividing by a sum when an average is required |
| Omission | Something needed is left out | A total range excludes the last records |
Design weaknesses increase future risk even when today's numbers are correct. A rate buried inside dozens of formulas is easy to miss during an update. Missing units make correct-looking inputs hard to interpret. Manual copying introduces opportunities to leave out or duplicate records.
Research on operational spreadsheets has repeatedly found errors in many large workbooks. Builders can be confident in their work while overlooking their own mistakes. EuSpRIG, the European Spreadsheet Risks Interest Group, brings researchers and practitioners together to study these problems and controls.
Learn from an incomplete averaging range
A 2013 re-analysis of Carmen Reinhart and Kenneth Rogoff's 2010 debt-and-growth work identified a spreadsheet average using rows 30–44 instead of 30–49. Five countries were omitted from that calculation. This was an omission error: the formula returned a number from an incomplete range.
The re-analysis reported average growth of about 2.2% for countries with debt above 90% of GDP, compared with the published −0.1%. That difference also reflected disputed data exclusions and weighting choices; it was not the effect of the range error alone. Range inspection and comparison with the intended country list address the spreadsheet fault.
Check the meaning of the denominator
In 2012, JPMorgan Chase's "London Whale" trades led to losses of about 6.2 billion US dollars. The bank's review found multiple problems, including manual spreadsheet work in a risk model. One calculation divided by the sum of two values when their average was intended. The larger denominator roughly halved measured volatility and lowered the apparent risk.
A valid number and a tidy formula were insufficient. A reviewer needed to compare the formula's operation with the model's intended definition. The spreadsheet fault was one part of the wider risk-management failure.
Check that all records arrived
In October 2020, Public Health England reported that 15,841 positive COVID-19 cases from September 25 through October 2 had been missing from daily reporting. The transfer process used older Excel files that exceeded a capacity threshold. The affected people had received their test results; the failure concerned reporting and contact-tracing transfer.
File capacity is a practical control issue. An .xls sheet holds at most 65,536 rows; an .xlsx sheet holds 1,048,576 rows and 16,384 columns. Compare source and destination record counts after a transfer, including totals for batches split across files.
Prioritize review where the stakes or opportunities for error are high: large models, complex formulas, several editors, workbook links, repeated copying, weak documentation and time pressure. These failures all show why a visible error code is only one signal to check.
Key Takeaways
- Mechanical, logic and omission errors need different kinds of inspection.
- An incomplete range can return a valid-looking number.
- Compare a formula with the intended definition, including its denominator.
- Reconcile record counts after transfers and check file capacity.
- Give high-stakes and complex workbooks more testing and independent review.
5.2 Design spreadsheets that are easy to check
An easy-to-check workbook makes its assumptions and calculation route visible. Someone reviewing it should be able to find what may be edited, what is calculated and where the final results appear. Clear structure also makes later changes less likely to introduce silent errors.
Give inputs one visible home
Separate inputs, calculations and outputs onto sheets or clearly labeled areas. Enter each assumption once and have every relevant formula refer to it. Use a distinct fill color for inputs together with labels that identify their purpose.
For example, a pay formula =C5*18.5+D5*18.5*1.5 hides both a rate and an overtime factor. Put them in named input cells Rate and OT, then use =C5*Rate+D5*Rate*OT. With 38 normal hours, 4 overtime hours, Rate = 18.50 and OT = 1.5, normal pay is 703 and overtime pay is 111, giving 814. Changing Rate to 19.00 updates the two parts to 722 and 114, giving 836.
A reviewer can now locate the assumption directly. Future rate changes need one input edit instead of an uncertain search through every formula.
Label units and keep the calculation readable
Use headings such as "Mass (kg)" and "Time (h)". Keep one unit per column. If source data mix grams and kilograms, convert them into the common unit before combining them; a total cannot identify that an unlabeled 500 was meant to be grams.
Keep formulas consistent down a calculation column. Review the pattern's logic by hand, check how its references change when copied, then inspect exceptions and the range boundaries. Consistency reduces the work of inspection, but the same wrong formula can be copied perfectly into every row.
Use helper columns for stages that would make one formula difficult to read, or name stages with LET. A clear left-to-right and top-to-bottom flow makes it easier to follow a result back to its inputs.
Let the data area grow safely
Store records in an Excel table and use structured references such as =SUM(Sales[Amount]). New table rows then join the total automatically. Compare the imported record count too: a growing total cannot include records that never reached the workbook.
Avoid merged cells inside records, hidden values and text formatted to disappear. Keep necessary links to other workbooks identifiable and review them under Data > Workbook Links, called Edit Links in some versions. Every external dependency adds another place where values can be stale or unavailable.
Leave a useful record for the next person
Create a first sheet giving the purpose, owner, version, date, sources and important assumptions. Record meaningful changes in a short log and keep earlier versions through clear file names or version history. When a result changes unexpectedly, this history helps locate the change that caused it.
Add data validation to input cells. Lock formula cells and protect the sheet so ordinary editing stays in the intended inputs. These controls support the structure: labels identify where to work, validation checks typed entries and locked formulas reduce accidental overwrites.
Key Takeaways
- Separate inputs, calculations and outputs so the route is easy to follow.
- Enter each assumption once in a labeled input cell.
- Keep one unit per column and use readable calculation stages.
- Check a formula pattern’s logic as well as its consistency.
- Use tables for growing record lists.
- Document sources and changes, and protect formula cells against overwrites.
5.3 Build check cells and test the model
A check cell tests a condition that should hold, returning TRUE or "OK" when it does and a failure signal when it does not. Decide what could go wrong, then design a check that could detect that fault. Repeating the same calculation with the same range repeats its mistakes too.
Compare totals by independent routes
Cross-footing compares totals calculated across rows with totals calculated down columns. For three regions over four quarters, use these values:
| Region | Q1 | Q2 | Q3 | Q4 | Row total |
|---|---|---|---|---|---|
| North | 120 | 135 | 150 | 140 | 545 |
| South | 90 | 95 | 110 | 105 | 400 |
| West | 75 | 80 | 85 | 90 | 330 |
| Column total | 285 | 310 | 345 | 335 | 1,275 |
With region totals in F2:F4 and quarter totals in B5:E5, =SUM(F2:F4)=SUM(B5:E5) returns TRUE. Each route gives 1,275.
If the Q4 total leaves out West, it becomes 245. The quarter totals now add to 1,185, while the row route still gives 1,275. The gap of 90 matches West's Q4 value and points to a range to inspect. A check tests agreement between the routes; it still needs both routes to be sensibly constructed.
Allow for stored decimal precision
Spreadsheets store numbers in binary. A calculation such as =1*(0.5-0.4-0.1) can return a tiny value near −2.78E−17 instead of exact zero. Comparing decimal totals with strict equality can therefore produce a failure caused by tiny stored differences.
For amounts rounded to hundredths, a check such as =ABS(SUM(F2:F4)-SUM(B5:E5))<0.005 accepts differences smaller than half a hundredth. Alternatively, round both totals to the required precision before comparing. Choose the tolerance to match the quantities; investigate a difference that exceeds it.
Match the check to the risk
A reconciliation compares a total with an outside source, such as a statement or source report. A record-count check compares loaded rows with the export count. COUNT and COUNTA can help reveal text in a numeric column. A balance check tests a required relationship such as assets equaling liabilities plus equity.
A plausibility check, =COUNTIF(B2:B200,"<0")=0, tests for negative quantities. An error check, =SUMPRODUCT(--ISERROR(D2:D500))=0, tests that no error values are present. Neither replaces a reconciliation: a plausible, error-free total can still be incomplete.
Show failures and test the response
Collect Boolean checks in H2:H8 and combine them with =IF(AND(H2:H8),"All checks OK","CHECK FAILED"). Put the status near the outputs, apply clear conditional formatting and add it to the Watch Window during testing.
Use simple inputs with known answers, then try zero, a blank, a negative number and the largest allowed value. Change one input at a time and predict the direction and size of the response. Test that a deliberately introduced fault makes the relevant check fail, then restore the valid input.
Ask another person to review formulas, constants, range ends, dependencies, circular references and calculation settings. Passing checks gives evidence about the conditions tested; independent review can find important assumptions those checks did not cover.
Key Takeaways
- Build checks around specific failure risks.
- Cross-footing compares totals from row and column routes.
- Use an appropriate tolerance or rounding for decimal comparisons.
- Reconcile both totals and record counts with independent sources.
- Keep a combined check status visible near outputs.
- Test known answers, edge cases and whether checks detect a deliberate fault.
- Include a review by someone other than the builder.
Troubleshooting Formulas examples
1Repair an error and check the result
14 steps
- 1IntroductionStart with the result you can see
A dashboard can show an error value even when its own formula is correct, because of error propagation. It can also show an ordinary number built from incomplete data: a silent error, which no code flags.
You will work backward from visible symptoms, repair their source and then challenge the resulting total. Keep the formula in place while you investigate: its references tell you where the result came from.
- 2ExplanationUse the code to narrow the search
An error value identifies a failed calculation.
#DIV/0!points to division by zero or an empty divisor.#N/Acommonly points to a missing lookup match.#REF!points to an invalid reference.Read the cell's message as well as the code. A lookup with an absent key and a lookup requesting a nonexistent column need different repairs, even though both prevent a price from being returned.
- 3ExampleInspect a missing price
A delivery sheet looks up code "M-28". The source list contains "M-28 " with a trailing space, and the exact lookup returns
#N/A.Compare the keys character by character and check their stored types. The extra space explains why these two visible labels fail to match. Correct the source key or clean the imported key, then rerun the lookup; changing the amount formula would not repair this mismatch.
- 4ChallengeChoose the right investigation
A formula contains
=VLOOKUP(A2,J2:K30,4,FALSE)and returns#REF!. Would cleaning spaces in A2 address the stated fault? What must be inspected?---reveal---
No. J2:K30 has only two columns, while the formula requests column 4. Inspect the intended return column and range, then repair that reference. A key mismatch would commonly produce
#N/A; this formula has an invalid column request before that issue is resolved. - 5ExampleFollow the error through the total
The repaired delivery lookup is in D8. Before the repair, D8 returned
#N/A, the total=SUM(D2:D12)also returned#N/A, and a dashboard linked to the total showed the same code.This is error propagation: later formulas use the failed result. The total's range can be correct while one included input fails. Follow the inputs backward until you reach the first faulty calculation.
- 6ExampleVerify the repair downstream
After the source key is corrected, D8 returns a price. Check the line amount, then the delivery total and dashboard.
Each step should now give a value consistent with its inputs. If the dashboard still fails, inspect its remaining inputs; repairing one source does not rule out another fault elsewhere. Do not type a remembered total over the dashboard formula, because that result would stop updating.
- 7TipKeep the fallback narrow
If an unlisted product is an expected case, a tested lookup can use
IFNAorXLOOKUP's missing-match argument to show "Not listed".A blanket
IFERRORalso catches structural faults such as#REF!. Turning every error into zero could make incomplete prices look like free items. Choose the fallback by the meaning of the missing result and by what later formulas will do with it. - 8ChallengePredict the fallback’s effect
Two known delivery times are 6 h and 10 h. A third missing time is replaced with zero before
AVERAGEis calculated. What average results, and what is wrong with interpreting it as the average of known times?---reveal---
The average is about 5.33 h:
AVERAGEcounts the replacement zero as a third number. The two known times average 8 h. The fallback has added an observation that was never measured as zero, pulling the result down. - 9ConnectionSeparate syntax, values and display
#NAME?can come from an undefined name or misspelled function.#VALUE!can come from text such as "4 kg" used in arithmetic.#SPILL!points to an array that cannot fill its intended area.A cell showing
#####needs a different check: widen its column, then inspect whether a negative date or time is causing the hashes. These hashes are a display problem rather than an error value. - 10ExplanationChallenge an ordinary-looking total
A silent error returns a plausible number. Look for text numbers, short ranges, shifted references and typed-over formulas.
Three amounts are 48, 32 and text "20". A total using
SUMreturns 80 because the text cell is ignored. The displayed total gives no error code. Comparing a numeric count with the number of expected records helps identify the missing contribution. - 11ExampleUse the counts to find the text
For those three nonempty cells,
COUNTreturns 2 andCOUNTAreturns 3. Inspect the extra nonnumeric entry and convert the text "20" to a number.The sum then becomes 100. The count difference was a clue, not the repair itself. Applying a number format alone does not establish a numeric stored value; check the cell after conversion and recalculate the total.
- 12ChallengeKeep the denominator fixed
E2 contains
=D2/D15, where D15 is the grand total. What should E2 contain before copying it down, and why?---reveal---
Use
=D2/$D$15. D2 must move to D3 and later rows, while the grand total stays at D15. Leaving both references relative moves the denominator too; fixing both would repeat the first row's share. Inspect the copied formula in the next row to confirm the adjustment. - 13ChallengeReview a repaired report
A report is now free of error codes. Its last record was added below a fixed sum range, and its discount input contains 12 where 12% was intended. What two silent faults still need repair?
---reveal---
Extend the total to include every intended record, or use a growing table reference. Correct the discount to 12%, stored as 0.12, and check its effect on the final amount. Both faults can produce numeric results, so the absence of error codes does not resolve them.
- 14RecapRead, trace, repair and test
Use the error code to choose the investigation, follow the calculation back to the source and verify the outputs after repair.
Then inspect ordinary-looking results too: confirm the records included, the input types, the copied references and the scale of percentages. A useful repair restores a calculation that will still work when the next input changes.
2Inspect a price model with auditing tools
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionChoose a view for your question
- 2ExplanationRead the route into a result
- 3ExampleFollow the price forward
- 4ChallengeInterpret a dashed arrow
- 5ExampleExpose the discount multiplier
- 6ExampleRepair the input and evaluate again
- 7TipPreview without freezing the expression
- 8ChallengeCheck the branch that runs
- 9ExplanationKeep the margin and checks in view
- 10ExamplePredict before editing
- 11ChallengeExplain an unchanged watch
- 12ExplanationRead the warning before fixing it
- 13ChallengeReview a deliberate exception
- 14ConnectionUse flags with explicit checks
- 15ChallengePut the investigation together
- 16RecapMatch the tool to the evidence
3Update results and solve a deliberate loop
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionCheck freshness before logic
- 2ExampleRecognize an old result
- 3ExplanationChoose the calculation scope
- 4ChallengeExplain a changed workbook mode
- 5ExplanationFind a route back to the same cell
- 6ExampleRepair the total’s input range
- 7ChallengeRepair an indirect allocation loop
- 8ExampleState the intended bonus relationship
- 9ExampleFollow the first rounds
- 10Key InsightSolve the same relationship directly
- 11ExplanationRead both stopping limits
- 12ChallengeJudge a stopped loop
- 13TipBuild a clean restart
- 14ChallengeSeparate two uses of iteration
- 15RecapKeep updates and dependencies explicit
4Validate an input column and inspect a paste
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionControl what the input means
- 2ExampleCreate the quantity rule
- 3TipTell the user what to enter
- 4ChallengeChoose a percentage rule
- 5ConnectionHandle choices and related inputs
- 6ExplanationChoose whether an exception can stay
- 7ExampleInspect pasted quantities
- 8ExampleRepeat every part in a helper
- 9ChallengeCount the failed entries
- 10ConnectionMake the result easy to find
- 11ChallengeInvestigate missing circles
- 12RecapCheck entry and stored data
5Review a workbook with independent checks
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionDecide what a wrong result could cost
- 2ExplanationIdentify the route to a mistake
- 3ChallengeMatch the review to the failure
- 4ExampleExpose a shared assumption
- 5TipMake records and units readable
- 6ChallengeFix a mixed-unit column
- 7ExampleBuild two routes to a total
- 8ExampleIntroduce one omission
- 9Key InsightChallenge the shared source too
- 10ChallengeUse a tolerance in both directions
- 11TipShow the status beside the result
- 12ChallengeReview a green status
- 13RecapMake the review repeatable
Troubleshooting Formulas practice questions
Set 1: Follow formulas and explain results10 Practice Questions
Question 1 of 10
=VLOOKUP(A4,H2:I60,3,FALSE). What should be repaired?Show answerHide answer
#REF!. Use the intended return column within that range, or expand the range to include it. Cleaning the key cannot repair an invalid column index.Question 2 of 10
=B2/B14. The total in B14 must stay fixed when the formula is copied down. What formula should C2 use?Show answerHide answer
Question 3 of 10
=OR(B2="",IF(ISNUMBER(B2),AND(B2>=1,B2<=90),FALSE)). How many failures does it report now, and how many should a full-rule helper report?Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
=COUNTIF(A2:A6,A2)=1 is applied with A2 active. Why can the duplicate in A4 pass, and how should the rule be repaired?Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Find errors and check inputs10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
=C6-D6. Which cells are its direct precedents?Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Repair calculations and controls10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
1-D5 becoming −24 in a discount calculation. D5 was meant to contain 25%. What input change repairs the scale?Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
=B3*C3 and F3 =D3-250. Tracing C3’s dependents first reaches D3, then F3. Other workbooks are closed. What should an edit to 2.20 produce, and what can this trace establish before removing C3?Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
##### even after its column has been widened. Its formula subtracts a later date from an earlier one. What should you inspect next?Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
=SUM(D3:D11), and D3:D10 are the intended inputs. What repair removes the accidental loop without omitting an input?Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
#REF!. An output column uses IFERROR to turn errors into zero, so its average is 40 and its error count is zero. The broken reference should return 60. What average should a source repair produce, and why was the zero error count insufficient?Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
#N/A. In the detail range, only one lookup shows #N/A; the others return numbers. Where should the repair begin?Show answerHide answer
Save this lesson to see this answer.
Set 4: Investigate hidden faults10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
=B3*C3 and G3 contains =D3-F3. You want to see all effects of changing C3. How should you begin?Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
#VALUE! circulating. The model has an off switch that makes the bonus formula return zero. What restart and settled bonus fit the model?Show answerHide answer
Save this lesson to see this answer.
Set 5: Review a model from source to output10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
=B5*C5*(1-D5), with B5 = 40, C5 = 3 and D5 = 10%. While editing, an analyst selected B5*C5, pressed F9, then Enter. B5 is later changed to 50. What result and repair fit the edited formula?Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
SUM(A2:A5) and COUNT(A2:A5) return?Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
FILTER formula should return four rows, but a note occupies one of its output cells. What repair addresses this cause?Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
=C2>=$B$2, applied with C2 active. Which row wrongly passes, and what rule repairs the comparison?Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
=B1+2, B1 contains =C1*3 and C1 contains =A1/3. Why does this create a circular reference even though none of the formulas names its own cell?Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Absolute reference
$F$1 so every copied row continued to use the same labeled surcharge rate.AGGREGATE
AGGREGATE is an Excel summary function with options to ignore selected kinds of values, including errors, while calculating a result.Automatic calculation
B
Background error checking
C
Calculation mode
Change log
Check cell
Circle Invalid Data
Circuit breaker
Circular reference
Convergence
Cross-footing
Custom validation formula
D
Data validation
Dependent
Direct circular reference
Display precision
E
Edge case
Error checking rule
Error propagation
Error test
ISERROR tests all errors and ISNA tests only #N/A.Error value
#N/A result led the reviewer to a missing product code in the lookup that supplied its detail figures.EuSpRIG
Evaluate Formula
H
Hard-coded override
Helper cell
I
IFERROR
IFERROR is an Excel function that returns a chosen replacement whenever its first expression returns any kind of error value.IFNA
IFNA is an Excel function that replaces only #N/A errors, allowing unrelated faults such as invalid references to remain visible.Ignore blank
Ignored error
Inconsistent formula
Indirect circular reference
Indirect precedent
Information alert
Input cell
Input message
Intermediate result
Iterative calculation
L
List source
Logic error
M
Manual calculation
Maximum Change
Maximum Iterations
Mechanical error
N
Number stored as text
SUM when read from a cell range.O
Omission error
P
Plausibility check
Precedent
R
Reconciliation
Record-count check
S
Sensitivity test
Show Formulas
Silent error
Spreadsheet risk
Stale result
Step In
Stop alert
Structured reference
Sales[Amount] so new rows added to the sales table joined the calculation automatically.T
Tolerance
Tracer arrow
V
Validation criterion
Volatile function
RAND and NOW.RAND().W
Warning alert
Watch entry
Watch Window
Workbook documentation
#
#CALC!
#CALC! indicates a calculation-engine case Excel cannot handle, such as an empty FILTER result without an empty-result argument.if_empty argument to return a suitable message.#DIV/0!
#DIV/0! means a calculation attempted division by zero, including an empty divisor or an average with no numeric observations.#N/A
#N/A means a required value is unavailable; it commonly occurs when an exact-match lookup cannot find the requested key.#N/A because the imported identifier contained an extra trailing space.#NAME?
#NAME? means Excel does not recognize text in a formula, such as an undefined name, misspelled function or unquoted text.SUMM to SUM repaired the unrecognized function name in the monthly total formula.#NULL!
#NULL! can mean that the space operator requested an intersection of ranges that have no cells in common.#NUM!
#NUM! means a numeric calculation is invalid, too large to store or unable to find an answer through its search process.=SQRT(-9) returns #NUM! because a negative number has no real square root.#REF!
#REF! means a reference is invalid, often because source cells were deleted or a requested lookup column is outside its range.#SPILL!
#SPILL! means an Excel formula cannot place its multi-cell result in the intended spill area, which may be blocked or unsuitable.#VALUE!
#VALUE! means a formula received an unsuitable type of value, such as nonnumeric text where arithmetic needs a number.- 1Logical Functions
- 2Conditional Counting and Summing
- 3Lookup Functions
- 4Text Functions
- 5Date and Time Functions
- 6Dynamic Arrays
- 7Troubleshooting Formulas
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.