Sub topic 12
Common Pitfalls and How to Debug Excel Data Tables
Assume you know basic Excel navigation, cell references, absolute references, percentage formats, and how a formula-driven financial model is structured. This chapter focuses on diagnosing a data table that looks wrong, stays unchanged, or produces results on the wrong axis.
Start with the model, not the table
A data table changes one or two input cells, recalculates the model, and records the selected output. It does not calculate independently. If the output formula does not depend on the input cell, every result can be identical.
For example, suppose:
B2contains the interest rate.B3contains the loan term.B4contains=PMT(B2/12,B3*12,-B1).
A rate sensitivity table must use B2 as its column input cell. If the formula in B4 instead contains a hardcoded rate, changing B2 has no effect.
B4: =PMT(B2/12,B3*12,-B1)Trace the output formula backward. Confirm that the tested input reaches the output through every required calculation.
Diagnose a flat grid
A flat grid means that multiple input values produce the same result. Check these causes in order:
- The input cell is wrong. Select the table and confirm that the column or row input cell is the model cell, not the table header cell.
- The output does not reference the input. Trace precedents from the output formula.
- The table has not recalculated. Press
F9, or choose Formulas > Calculate Now. - Calculation settings exclude data tables. Check Formulas > Calculation Options.
- The table values are stored as text. Format the headers as numbers or percentages and re-enter them if necessary.
A quick test is to change the model input manually. If the output does not change, the problem is in the model. If the output changes manually but the table does not, the problem is in the data table setup or calculation mode.
Diagnose a wrong-axis result
In a two-variable table, values across the top replace the row input cell. Values down the left replace the column input cell.
| Grid location | Replaces |
|---|---|
| Top-row values | Row input cell |
| Left-column values | Column input cell |
If years run across the top, set the row input cell to the term cell. If rates run down the left, set the column input cell to the rate cell. Reversing these cells can produce plausible numbers that represent the wrong scenarios.
Check the table layout
For a two-variable table, the output formula must be in the top-left corner of the selected range. The row values begin one cell to its right, and the column values begin one cell below it.
For a one-variable column table, place the output formula one row above the input values and one column to their right. Select the complete range before choosing Data > What-If Analysis > Data Table.
The input cells must be genuine model inputs. Avoid selecting a formula cell, a table header, or a value that the model never reads.
Use a base-case check
Include the current model assumptions in the table. Then compare the matching table result with the live model output.
K2: =E5-B4If E5 represents the current rate and term, K2 should equal zero, allowing for rounding. A nonzero result indicates a layout, input-cell, output-reference, or calculation problem.
The TABLE formula is managed by Excel. Do not edit individual result cells. Select the entire table to delete or rebuild it. If a table is accidentally overwritten, recreate it from the original range.
Exercise
Exercise
A rate table is flat, but changing the rate cell manually changes the loan payment. What should you check first?
Show answer
Check that the data table uses the rate cell as its input cell, then confirm that Excel is recalculating data tables.