Sub topic 2
Building a Model That Can Be Solved Backward
This chapter assumes you can write formulas with absolute and relative references, and that you know basic financial functions such as PMT and NPV. It also assumes you know the difference between revenue, costs, profit, and cash flow. You don't need Goal Seek or Solver yet. This chapter covers the layout that makes both tools reliable.
Why layout decides whether backward solving works
Goal Seek and Solver don't understand your business. They change some cells, recalculate the workbook, and look at one result cell. If the workbook's structure hides, breaks, or distorts the link between those cells, the tools return a wrong answer, or no answer at all. They won't tell you the model was badly built.
A model that can be solved backward has three properties:
- Every number you might want to change is stored in one visible cell.
- A chain of formulas connects those cells to the result you care about.
- The result cell is a real calculation, not a pasted value or a rounded display.
The three layers: inputs, formulas, outputs
Keep three kinds of cells apart, and make them look different (for example blue font for inputs, black for formulas).
| Layer | Contains | Rule |
|---|---|---|
| Inputs | Constants: price, cost, growth rate, loan term | Typed values only, never formulas |
| Calculations | Formulas that combine inputs | No typed numbers inside formulas |
| Outputs | Results such as profit, NPV, ending cash | Formulas that point at calculation cells |
The split matters because backward solving needs a cell that the tool can overwrite. Goal Seek puts trial values into the changing cell. If that cell holds a formula, the tool replaces the formula with a number and the model is damaged. Solver also needs variable cells that hold plain values. Inputs that are separate constants are safe to hand over to either tool.
A worked layout
This is the break-even model from the topic, laid out in three layers on one sheet.
A1: INPUTS
A2: Units sold B2: 1000
A3: Price per unit B3: 50
A4: Variable cost per unit B4: 30
A5: Fixed costs B5: 15000
A7: CALCULATIONS
A8: Revenue B8: =B2*B3
A9: Variable costs B9: =B2*B4
A10: Contribution margin B10: =B8-B9
A11: Operating profit B11: =B10-B5
A13: OUTPUT
A14: Operating profit B14: =B11Operating profit at 1,000 units is 1000 × (50 − 30) − 15,000 = 5,000. To work backward, ask which units value gives a profit of zero. In Goal Seek, set cell B11 to value 0 by changing cell B2. The answer is 750 units, because 750 × 20 = 15,000.
Every input appears exactly once. Price lives in B3 and nowhere else, so changing it updates every formula that depends on it.
Rules for a solvable model
The changing cell must be a typed value
Check each cell you plan to vary. Select it and look at the formula bar. If you see =B20*12 or =1000, it is a formula, even though it looks like a number. Convert it to a constant first. If the number needs to come from somewhere else, keep the source as the input and let the model read it.
The target must depend on the changing cell
The tool can only move the result by moving the input, so a chain of formulas has to connect them. Use Formulas > Trace Dependents on the input. The output cell should appear at the end of the arrows. If it doesn't, the tool will find that nothing happens, no matter how many iterations it runs.
Remove hardcodes from formulas
A formula like =B2*B3*0.94 hides a 6% discount inside the calculation. If you later solve for the discount, no cell exists to change. Give the 0.94 or the 6% its own labelled input.
Keep units consistent
Decide once whether rates are stored as 0.05 or 5, and whether amounts are in dollars or thousands. Mixed units cause two common failures. The tool returns a growth rate of 4.2 when you expected 4.2%. Or the model contains a rate of 5 where a formula expects 0.05, which gives results that are numerically valid and financially absurd.
Keep the target on a full-precision cell
Don't point the tool at a cell that uses ROUND, or at a cell whose displayed value is formatted to fewer decimals than it holds. Rounding creates flat steps in the result. A tool that looks for a change in the output finds none when the input moves slightly, and may stop early. Round only in a separate presentation cell.
Keep the tool's cells reachable
Goal Seek's dialog takes cell references on the active sheet. If your model spreads inputs across several sheets, put a link cell on the input sheet, such as =Calc!B11, and use that as the cell to set. The link is a formula, so it is fine as a target. The changing cell must still be a typed constant, wherever it lives.
Common structural errors
Each of these produces an answer that looks plausible. Learn to spot them before you run a tool.
- Overwritten formula. The changing cell contained
=B20*12. After Goal Seek, it holds750and the link to B20 is gone. Undo immediately and restructure. - Pasted values in the chain. Someone replaced a formula in B10 with its value. Now B11 no longer responds to B2, and the tool reports it cannot reach the target.
- Hidden circularity. The interest formula uses ending debt, and ending debt depends on interest. Excel either warns about the circular reference or, if iterative calculation is on, quietly iterates. A search inside an iteration can converge to something that is not a true answer. Break the loop where you can, for example by calculating interest on the opening balance.
- Tiny inputs and huge outputs. A target cell in the millions with an input near 0.001 can make the search imprecise, since the tolerance is absolute. Scale values to similar sizes, or solve for a rescaled input.
- Multiple scenarios in one cell. An input that a switch formula overrides in some cases (for example
=IF(Scenario=1, B3, C3)) means the tool may change a cell the model ignores.
Checks to build in
Add a few cells that fail loudly when the structure breaks.
A16: CHECKS
A17: Contribution identity B17: =ROUND(B8-B9-B10,6)=0
A18: Input is typed value B18: =NOT(ISFORMULA(B2))
A19: Target reached B19: =ABS(B11)<0.01The first check confirms that the pieces add up. The second uses ISFORMULA to confirm that the changing cell is still a constant. The third confirms after solving that the target is actually met, to a stated tolerance. Test it by hand: type 750 into B2 and see all three show TRUE. Then type =500+250 and see B18 turn FALSE.
You can also confirm the backward answer by running the model forward. After the tool returns 750, retype 750 yourself and read the profit. If it isn't zero, something in the chain isn't behaving as you thought.
A quick review procedure
Before you run any target-seeking tool, go through this list:
- Identify the target cell and the cells you will change.
- Confirm that each changing cell holds a typed value.
- Trace dependents from each changing cell to the target.
- Search the formulas for typed numbers that should be inputs.
- Check that units and scales are consistent.
- Save a copy of the workbook.
This takes a few minutes and prevents most wrong answers.
Exercise
In a loan model, cell B3 holds the term in months and contains the formula =B2*12, where B2 is the term in years. The payment cell B6 is =-PMT(B4/12,B3,B5). You run Goal Seek to set B6 to 1,200 by changing B3. Describe two things that go wrong, and how you would restructure the model.
Show answer
First, B3 is a formula, so Goal Seek replaces =B2*12 with a typed number and the link to the term in years is lost. Second, the answer may be a non-integer such as 83.4 months, which doesn't match a real loan term, and B2 no longer shows the matching term. Restructure by making the term in months a typed input and, if you need years, calculating years from months in a separate cell (=B3/12). Then change B3 with Goal Seek, and round or check the result to a whole number of months.