Sub topic 8
Formatting the Table and Highlighting the Base Case
This chapter assumes that you can navigate Excel, use absolute and relative references, format percentages, and build a simple formula-driven financial model. You should also know which cells contain the model inputs and which cell contains the output being tested.
Make the table readable
A sensitivity table should let a reader answer three questions quickly:
- Which input values produce each result?
- Where is the base case?
- Which results are more favorable or less favorable?
Use clear labels above and beside the grid. For example, a two-variable loan table might look like this:
| Interest rate \ Term | 10 years | 15 years | 20 years | 25 years | 30 years |
|---|---|---|---|---|---|
| 4.5% | $3,109 | $2,295 | $1,898 | $1,668 | $1,520 |
| 5.5% | $3,255 | $2,451 | $2,061 | $1,834 | $1,703 |
| 6.5% | $3,409 | $2,558 | $2,237 | $2,026 | $1,896 |
Format the row and column headers with bold text and a contrasting fill. Format interest rates as percentages and financial outputs as currency or whole numbers. Avoid excessive decimal places. They make patterns harder to see.
Keep the output cells visually distinct from the input headers. A thin border around the complete table helps readers understand which cells belong to the sensitivity analysis.
Apply a heatmap
A color scale can show the pattern across the output grid. Select only the result cells, such as E3:I7, then choose:
- Home > Conditional Formatting.
- Color Scales.
- A scale that matches the meaning of the output.
For loan payments, lower values may be favorable, so green can represent lower payments and red can represent higher payments. For enterprise value, higher values may be favorable, so reverse the color meaning.
Do not rely on color alone. Use number formats and labels because some readers may have color-vision limitations, and printed or grayscale versions may lose the color distinction.
Highlight the base case
The base case is the result produced by the model's current input values. Highlighting it lets a reader compare every sensitivity result with the current assumption set.
Suppose:
B2contains the current interest rate.B3contains the current term.D3:D7contains the rate headers.E2:I2contains the term headers.E3:I7contains the results.
Select E3:I7 and create a formula-based conditional formatting rule:
=AND($D3=$B$2,E$2=$B$3)The dollar signs lock the header columns and input cells while allowing the rule to adjust for each result cell. Apply a strong border or a separate fill color. A dark outline is often easier to interpret than another shade in the heatmap.
If the inputs are calculated values, exact equality may fail because of rounding. Use a tolerance instead:
=AND(ABS($D3-$B$2)<0.000001,ABS(E$2-$B$3)<0.000001)Check that the highlighted cell is the intersection of the current rate and current term. For example, if the model uses 6.5% and 30 years, the matching cell is the row for 6.5% and the column for 30 years.
Add a base-case check
A separate check cell can compare the table's base-case result with the model output:
=I5-B4If I5 is the intersection for 6.5% and 30 years, and B4 is the model output, the result should be zero, or an insignificant rounding difference. Format the check cell to display several decimal places while testing.
Exercise
The model uses 6.5% and 30 years. The rate headers are in D3:D7, the term headers are in E2:I2, and the result grid is E3:I7. Write a conditional formatting formula that highlights the base-case result.
Show answer
=AND($D3=$B$2,E$2=$B$3) applied to E3:I7.