Sub topic 2
Preparing the model: inputs, calculations, and one output
A data table is only as good as the model behind it. Excel's data table feature substitutes values into an input cell, recalculates the workbook, and records what an output cell shows. If the model is wired badly, the table is wrong or flat, and Excel gives no warning. This chapter covers how to lay out a model so a data table can work.
Prerequisites. You should be comfortable with cell references, absolute and relative references ($B$2 vs B2), and building a simple formula-driven model such as a loan payment. You do not need to have built a data table yet. The next chapters cover the mechanics.
The three zones of a model
A model that supports sensitivity analysis has three zones. Keep them visibly separate.
| Zone | What it holds | Rule |
|---|---|---|
| Inputs | Assumptions you type in: rate, term, growth, price | Each is a constant, entered once, in one cell |
| Calculations | Formulas that transform inputs into intermediate values | Reference input cells only. Contain no typed-in assumptions |
| Output | The result you want to study, such as a payment or a valuation | One cell, formula-driven, depends on the inputs through the calculations |
A data table treats the model as a function: values go into the inputs and one number comes out of the output. The cleaner the boundaries, the easier it is to see which cell to vary and which cell to read.
The dotted lines show what the data table does. It never edits your formulas. It only swaps values into the input cells and reads the output cell.
A minimal prepared model
The loan model below has three inputs and one output. It is small enough to see completely, but it has the structure a larger model needs.
B1: 300000 (Loan amount)
B2: 0.065 (Annual interest rate)
B3: 30 (Term in years)
B4: =PMT(B2/12, B3*12, -B1) (Monthly payment, the output)Cells B1:B3 are typed constants. Cell B4 is a formula that reads all three. Notice the unit conversions inside B4: the rate is stored as an annual figure and divided by 12 in the formula, and the term is stored in years and multiplied by 12. The inputs stay in the units a person would naturally think in. The conversion lives in the calculation.
Expected result: B4 shows about 1,896, the monthly payment on 300,000 at 6.5% over 30 years. Write this number down. You will compare it against a data table later.
For a model this small, one formula is enough. In a larger model, such as a DCF, the calculation zone could span dozens of rows: revenue projections, free cash flow, discount factors, terminal value. The principle is the same. Every path from an input to the output passes through formulas, and no assumption is typed inside a formula.
Rule 1: inputs are constants
Each input cell should hold a typed value, not a formula. Three reasons:
- A data table needs a clear, single place to inject values. A cell holding
=Assumptions!C5*1.1is a formula, so it is not a place where you type a value. Point the table at a cell that holds a typed value. - A reader can see at a glance what the assumptions are.
- Changing an assumption means editing one cell, with no hunting through formulas.
A common convention is to format input cells distinctly, for example blue font or a light yellow fill. Use whichever convention your team uses, but use it everywhere in the workbook.
Rule 2: no hardcoded assumptions inside formulas
This is the most frequent cause of a table that produces a flat grid, meaning every cell shows the same number. Compare two versions of the payment formula.
Broken: B4: =PMT(0.065/12, B3*12, -B1)
Correct: B4: =PMT(B2/12, B3*12, -B1)In the broken version, the rate is typed inside the formula. Cell B2 may still exist and may be labeled "Annual interest rate", but nothing reads it. A data table that varies B2 would change a cell that has no effect, and the output would never move.
Excel will not flag this. The model looks right, and the numbers for the base case are right. The failure shows up only when you try to vary the input.
Watch for hidden hardcodes in other forms:
- A rate typed twice, once in an input cell and once in another formula. Changing the input cell updates only one copy.
- A pasted value in the calculation zone that used to be a formula. It looks like a number and silently stops responding to inputs.
- A constant like
*12that is really an assumption, such as payments per year. Putting a "Payments per year" input in the model is usually better if the value might change.
Rule 3: the output depends on the input through live formulas
For a data table to work, there must be an unbroken chain of formulas from the input cell to the output cell. Break the chain anywhere and the table cannot see the change. Typical breaks:
- A value pasted over a formula in the middle of the chain.
- A cell that uses a typed number where it should link to an upstream cell.
- A link built with text (for example
=INDIRECT("B2")) or an external workbook reference that does not recalculate the way you expect. Prefer direct cell references.
Check the chain before building any table. Select the output cell and use Formulas > Trace Precedents. Arrows should lead back to every input you intend to vary. If an input has no arrow reaching the output, something is disconnected.
Rule 4: one output cell per question
A two-variable data table reads exactly one output formula. A one-variable table can read several, but each is still a single cell that you deliberately point it to. Make the output explicit:
- Give each output its own labeled cell, for example "Monthly payment" or "Enterprise value".
- Make that cell the end of the calculation chain, not a cell in the middle of a larger block.
- If you want to study a second metric, such as total interest paid, build it in its own cell too.
B5: =B4*B3*12-B1 (Total interest paid, a second output)Because B5 reads B4, both cells respond to the same inputs, and either one can serve as a table's output.
Rule 5: keep the table and its inputs on the same sheet
Excel requires the input cells for a data table to be on the same worksheet as the table itself. The mechanics are covered in the next chapter, but the layout decision belongs here. If your model keeps assumptions on a separate "Inputs" sheet, you have two common workarounds:
- Put the data table on the Inputs sheet, next to the assumptions, and let it read an output cell from the calculation sheet.
- Keep the working input cells on the output sheet and have the original assumptions sheet link to them. The cells that the table varies must hold the typed values, so the link direction matters. The assumptions flow from the cells the table varies, not into them.
Deciding this before you build avoids rewiring a finished model.
Checking readiness: a short test
Before building a table, run these checks. Each takes under a minute.
- Move each input by hand. Change B2 from 0.065 to 0.075. B4 should change. Then change B3, then B1. Restore the originals when you finish. If an input does not move the output, you have found a hardcode or a break.
- Search for typed constants. Use Home > Find & Select > Go To Special > Constants to highlight every typed number on the sheet. Only your inputs should appear. A highlighted cell in the calculation zone is a suspect.
- Trace precedents. Confirm every intended input leads to the output.
- Check units. A rate of 6.5 entered where the formula expects 0.065 gives a plausible-looking but wrong answer. Format the input as a percentage so the displayed value matches what the formula expects.
The manual test matters most, because it is the same operation a data table performs. If a hand-edit changes the output, a table substitution will too.
Summary of the layout
A table-ready model has these properties:
- Inputs are typed constants in clearly marked cells.
- Calculations reference inputs and contain no embedded assumptions.
- The output is a single formula cell at the end of an unbroken chain.
- Units are consistent and visible.
- The input cells and the planned table are on the same sheet.
With this structure in place, the next chapter explains what a data table does with it.
Exercise
A colleague's loan model has the annual rate in B2 (0.065), but the payment cell contains =PMT(0.065/12, B3*12, -B1). They plan to build a data table that varies B2 from 4.5% to 8.5%. What will the table show, why, and how do you fix it?
Show answer
Every cell in the grid will show the same payment, the base-case value of about 1,896. The formula never reads B2, because the rate is typed inside it as 0.065, so substituting values into B2 changes nothing. Fix it by replacing the typed rate with a reference to the input cell: =PMT(B2/12, B3*12, -B1). Then change B2 by hand to confirm the payment moves before building the table.
Exercise
You have an Inputs sheet holding the rate and term, and a Model sheet holding the payment formula. You want a data table. Name two layouts that satisfy the same-sheet requirement.
Show answer
Either place the data table on the Inputs sheet, next to the typed input cells, with its output formula linking to the payment cell on the Model sheet. Or move the typed input cells onto the sheet where the table will live and have the other sheet's formulas read from them. In both layouts, the cells the table varies must hold typed values on the same sheet as the table.