When modeling financial projections, loan amortizations, or stepped tax calculations, outputs frequently depend on a sequence of formulas spread across multiple cells. In such models, evaluating different assumptions requires either duplicating the calculation structure across dozens of cells or testing scenarios manually.
What-If Analysis provides automated one-variable and two-variable Data Tables. The add-on substitutes test values into defined input cells, reads the resulting model outputs, and populates a structured results table.
All calculations run securely and privately in your Google Sheet.
Evaluates a single model output against two variable inputs arranged along the row and column axes:
| Formula: =B10 (Model Output) | Term: 10 Years | Term: 20 Years | Term: 30 Years |
|---|---|---|---|
| APR: 3.0% | -$34,794.53 | -$111,214.52 | -$128,497.39 |
| APR: 4.0% | -$46,741.94 | -$152,991.85 | -$178,246.28 |
| APR: 5.0% | -$58,808.37 | -$196,762.13 | -$231,134.73 |
Varies a single input variable down a column while computing one or more model outputs simultaneously. Place your target output formulas in the top row directly above the result columns:
| [Optional Label] | Formula 1: =B6 (Monthly Pmt) | Formula 2: =B10 (Total Interest) |
|---|---|---|
| Test Value: 3.0% | $1,051.38 | -$128,497.39 |
| Test Value: 4.0% | $1,189.57 | -$178,246.28 |
| Test Value: 5.0% | $1,336.49 | -$231,134.73 |
| Test Value: 6.0% | $1,491.42 | -$286,910.92 |
=B6 or =B10) in the top row of each output column (columns 2, 3, etc.). The tool reads these formulas to calculate what fills in the cells below.
Example1DataTableRange and InterestRate). If you insert rows or restructure sheets, Named Ranges prevent references from breaking.
For simple single-step relationships, writing direct formulas across the grid calculates faster. What-If Data Tables are designed for multi-cell dependencies, loan schedules, or tiered bracket lookups where condensing the logic into a single formula is impractical or difficult to audit.
In one-variable tables, multiple formulas can be positioned across adjacent output columns. A single parameter sweep can evaluate multiple related metrics side by side without setting up separate tables.
Tables do not recalculate on every keystroke. This prevents large scenario tables from introducing spreadsheet calculation latency during normal edits. When base assumptions change, recalculation is triggered on demand through the sidebar.
You can make a copy of the Reference Example Spreadsheet to inspect working models for:
What-If Analysis is provided as an open-source project, and community contributions are welcome on GitHub. If you need support, encounter a bug, or have a feature request, please log in to GitHub and file an issue.