Excel Data Tables for Sensitivity Analysis: Setup, Errors and Slow Models
The valuation model has a WACC and growth sensitivity grid on the summary tab. Every cell in the grid shows 21.95, the base case value. The analyst rebuilds it and gets the same result. Elsewhere in the building, a colleague complains that the same model takes eight seconds to recalculate after every edit, and has switched calculation to manual, which is why the grid never updates.
Excel’s data tables (What-If Analysis, Data Table) are the standard way to build a sensitivity grid on any output, however complex the model behind it. They are also behind some of the most common modeling complaints: grids that show one value everywhere, errors about invalid input cells, and workbooks that slow to a crawl. This post covers setup in Excel 2021 or 365, each common error, and how to keep the calculation cost under control.
How a data table works
A data table substitutes each value from a row or column into an input cell, recalculates the model, and records the output. A two-variable table with 5 rows and 5 columns runs the model 25 times. It works on any output that depends on the inputs, through any number of tabs, which is why it is so useful and why it is so expensive.
Setting up a two-variable table
- Pick the output, say enterprise value. In the top-left corner of the grid, link to it:
=EV. - Put the values for one input across the top row (growth: 2.0%, 2.5%, 3.0%) and the other down the left column (WACC: 9%, 10%, 11%).
- Select the whole grid including the corner, then What-If Analysis, Data Table.
- Row input cell: the model’s growth input. Column input cell: the model’s WACC input.
Excel fills the grid with {=TABLE(growth, WACC)}. The braces mean it is one array; individual cells cannot be edited or deleted. Select the whole result area to clear it.
A one-variable table works the same way with a single row or column of input values, and can have several output formulas across the top to show revenue, EBITDA and cash for each value at once.
Error: the same value in every cell
The most common problem. Every cell shows the base case. Causes, in order of frequency:
- The calculation mode. Under Formulas, Calculation Options, “Automatic except for data tables” stops data tables updating. Press F9 to calculate, and if the grid fills correctly, this was it.
- The input cell is not the real input. The row or column input cell must be the cell the model actually reads from. If the growth assumption on the inputs tab is a link to a scenario table, the data table has to point at the cell holding the constant, not the link.
- The output does not depend on the input. If the model’s EV does not trace back to the input cell, every substitution produces the same result. Use Trace Precedents from the output.
- Row and column swapped. The grid fills with numbers, but the wrong ones: growth values have been fed into WACC. Check one cell by hand.
Error: input cell reference is not valid
The row and column input cells must be on the same sheet as the data table. If the inputs live on an inputs tab and the grid is on a summary tab, Excel refuses.
Two fixes. Build the data table on the inputs tab, next to the inputs it varies, and link the results to the summary. Or create a driver cell on the summary tab, make the input on the inputs tab a link to it, and point the data table at the driver cell. The first keeps the inputs tab as the single source of truth and is usually cleaner.
Slow models
Each data table cell is a full recalculation of everything that depends on the input. A 7 by 7 grid on a model that takes a quarter of a second to calculate adds 12 seconds to every recalculation, which happens on every edit anywhere in the workbook.
Ways to keep it manageable:
- Use “Automatic except for data tables” while building, with a visible warning on the grid that it needs F9, and switch back before distributing. Excel takes the calculation mode from the first workbook opened in a session, so the setting may not travel the way you expect; manual calculation is a decision covers the risks.
- Fewer, smaller grids. Five values each way is usually enough. Several grids on the same output multiply the cost.
- Formula-based grids where possible. If the output has a closed form, write the formula in each cell directly. The WACC and growth grid in the DCF post needs no data table, because terminal value and discounting can be written for each combination.
- Snapshot instead of live. For a board pack, run the sensitivity once, paste values with a timestamp, and remove the data table.
Data tables and circular references
A data table on a model with iterative calculation recalculates the loop for every cell, and convergence can fail for some combinations without any warning. Results can differ from running the same inputs by hand. Check two or three grid cells manually, and consider turning the circularity off with its circuit breaker for the sensitivity run.
Where it breaks
Inserting rows inside the table. Not allowed; Excel reports that it cannot change part of a data table. Clear and rebuild.
Input values that reference the model. The row and column values should be constants or simple formulas from an input. Values that depend on the model’s own outputs create unexpected loops.
Sharing with manual calculation. A file saved with calculation set to manual, opened first in someone’s session, sets their Excel to manual for every workbook they open. Say so on the cover tab, or save with automatic calculation.
Reading the base case. Format the cell that matches the current inputs so readers can find the base case in the grid, and check that it equals the model’s output. If it does not, the table is stale.
