Sub topic 2
Preparing the Model: Inputs, Calculations, and One Output
A sensitivity table changes one or two model inputs and records the resulting output. Before building one, you need a model with a clear structure. This chapter assumes you know basic Excel navigation, cell references, absolute references, percentages, and simple financial formulas.
Separate inputs, calculations, and outputs
Keep these parts distinct:
- Inputs are assumptions that a user may change, such as loan amount, interest rate, or term.
- Calculations use input cells to produce intermediate values.
- Outputs are the results you want to compare across different assumptions.
Do not type an assumption directly inside the output formula. A data table replaces values in input cells. If the formula contains a hardcoded assumption, changing the input cell will not affect that part of the calculation.
| Model part | Example cell | Example value or formula |
|---|---|---|
| Loan amount input | B1 | 300000 |
| Annual interest rate input | B2 | 6.5% |
| Term input | B3 | 30 |
| Monthly payment output | B4 | `=PMT(B2/12,B3*12,-B1)` |
A simple model can use one worksheet. Place inputs in a clearly labeled section, calculations below or beside them, and the output in a separate labeled cell. This makes it easier to identify the input cell that the data table must replace.
Build a formula-driven example
Enter the following values:
B1: 300000
B2: 0.065
B3: 30
B4: =PMT(B2/12, B3*12, -B1)Label the cells in column A:
A1: Loan amount
A2: Annual interest rate
A3: Term in years
A4: Monthly paymentThe PMT function calculates a regular loan payment. Its first argument is the periodic interest rate, so the annual rate in B2 is divided by 12. Its second argument is the number of monthly payments, so the term in B3 is multiplied by 12. The negative loan amount makes the payment display as a positive number.
Format B1 and B4 as currency, B2 as a percentage, and B3 as a number with zero decimal places. Formatting does not change the calculation, but it helps prevent mistakes when reviewing the model.
Make the output depend on the inputs
Test the model manually before creating a sensitivity table. Change B2 from 6.5% to 7.0% and observe whether B4 changes. Then restore B2 to 6.5%.
If the output does not change, inspect the formula in B4. It should refer to B2, not contain a separate interest-rate value such as 0.065. Also check that Excel calculation is enabled.
A data table needs a single output formula to evaluate repeatedly. The output may be a direct result, such as monthly payment, or a linked result from a larger model, such as net present value. In either case, the selected input cells must drive the output through the calculation chain.
Understand the model flow
The model should follow this direction:
The data table does not replace the model. It temporarily substitutes trial values into selected input cells, recalculates the model, and records the output. After each trial, Excel restores the original input values.
Prepare for the next step
For a one-variable table, choose one input to vary. For example, you might test interest rates from 4.5% to 8.5% while keeping the loan amount and term fixed. The output formula remains B4, and the variable input remains B2.
A reliable structure has:
- One cell for each assumption.
- No hardcoded assumptions inside dependent formulas.
- One clearly identified output cell.
- A known base case that you can reproduce manually.
- Consistent number formats and labels.
Exercise
Which change is required if the monthly payment formula contains =PMT(0.065/12,B3*12,-B1) instead of referring to the rate input cell?
Show answer
Replace the hardcoded 0.065 with B2, producing =PMT(B2/12,B3*12,-B1). The data table can then vary the interest rate through cell B2.