Sub topic 1
From forward calculation to target-seeking
Prerequisites
This chapter assumes you can already do the following:
- Write Excel formulas with relative and absolute references (
B1,$B$1). - Use common financial functions such as
PMT,NPV, andIRR. - Read a simple income statement and a cash flow summary: revenue, variable and fixed costs, operating profit.
You do not need to know Goal Seek or Solver yet. This chapter explains the idea they share. Later chapters cover each tool in detail.
Forward calculation: inputs in, answer out
Most spreadsheet work runs forward. You choose the assumptions, and formulas compute the result. A break-even model is a good example:
A1: Units sold B1: 1000
A2: Price per unit B2: 50
A3: Variable cost B3: 30
A4: Fixed costs B4: 15000
A5: Operating profit B5: =B1*(B2-B3)-B4With 1,000 units, B5 is 1,000 × (50 − 30) − 15,000 = 5,000. You supplied the inputs (B1:B4), and the formula produced the output (B5). This is a forward calculation.
Forward calculation is how you answer "what happens if?" questions:
- What is profit if we sell 1,000 units?
- What is the monthly payment if the loan is 200,000 at 6% for 30 years?
- What is the NPV if revenue grows 4% a year?
You pick the inputs and read the output. Changing an input and re-reading the result is called scenario analysis.
Target-seeking: output fixed, input unknown
Target-seeking reverses the question. You fix the output at a value you want, then ask which input produces it:
- How many units must we sell for operating profit to be exactly zero?
- What interest rate makes this loan payment 1,200 a month?
- What growth rate makes the NPV equal to the purchase price?
This is also called backward calculation, goal seeking, or solving for an input. The formula itself does not change. Only the roles of the cells change: the output becomes a fixed target, and one input becomes the unknown.
In the break-even model, the target is B5 = 0 and the unknown is B1. You can solve this one by hand, because the formula is simple:
units = fixed costs / (price - variable cost) = 15000 / (50 - 30) = 750At 750 units, B5 is 750 × 20 − 15,000 = 0. So the break-even volume is 750 units.
Why you cannot always just rearrange the formula
Algebra works for the break-even model because the unknown appears once, in a linear way. Real financial models often break that condition:
- The unknown feeds through many linked cells (a growth rate that drives revenue, then tax, then cash flow, then NPV).
- The formula contains functions that cannot be inverted by hand, such as
IRRor a chain ofIFstatements. - Several inputs interact, and the answer depends on constraints (for example, a budget limit).
In these cases you cannot write unknown = something. Instead, you let software try values for the unknown, recalculate the model, and check how far the output is from the target. Excel's Goal Seek and Solver automate this trial-and-adjust process.
The two tools at a glance
Excel provides two built-in tools for this job.
| Feature | Goal Seek | Solver |
|---|---|---|
| Unknowns | One input cell | Many input cells |
| Target | One output cell set to a value | Maximize, minimize, or hit a value |
| Constraints | None | Yes (limits, budgets, whole numbers) |
| Typical question | What price gives zero profit? | What product mix gives the most profit within capacity? |
| Where to find it | Data > What-If Analysis > Goal Seek | Data > Solver (add-in, must be enabled) |
Goal Seek is the lighter tool, and Solver is the heavier one. Chapter by chapter, this tutorial builds from the first to the second and then covers how to choose between them.
A first target-seeking run
Here is the break-even model solved with Goal Seek. Open the Goal Seek dialog and enter:
Data > What-If Analysis > Goal Seek
Set cell: B5
To value: 0
By changing cell: B1The dialog has three fields, and each has a strict meaning:
- Set cell is the output you want to control. It must contain a formula.
- To value is the number you want that cell to reach. It is typed in as a constant.
- By changing cell is the input Excel may adjust. It must contain a value, not a formula.
After you click OK, Excel replaces B1 with the value it found, which is 750 (or something extremely close, such as 750.0000001). The formula in B5 is untouched.
Notice what happened: the model is the same as before, and only the value in B1 changed. Goal Seek did not "solve" the formula. It searched for an input that made the formula's result match your target.
Checking an answer independently
A solved value is only useful if you trust it. A habit worth building from the start is checking the result with a second method. Here is an independent root-finding check in Python, which should print about 750:
from scipy.optimize import brentq
def profit(units):
return units * (50 - 30) - 15000
break_even = brentq(profit, 0, 10000)
print(round(break_even, 2))brentq finds a point where profit crosses zero, searching between 0 and 10,000 units. It needs the function to have opposite signs at the two ends. Here profit(0) is −15,000 and profit(10000) is 185,000, so a crossing exists in between. The printed result of 750.0 matches the spreadsheet.
You will see this same idea of bracketing and verifying again in later chapters.
What a model needs before it can be solved backward
Target-seeking only works when the model is arranged so that one cell can be changed and the result flows through formulas. Three rules cover most cases:
- The changing cell holds a value. If it holds a formula, the tool cannot adjust it. (Goal Seek will refuse to run or will overwrite the formula.)
- The set cell depends on the changing cell. Through direct formulas or a chain of links, a change in the input must reach the output. If it does not, no value of the input can ever reach the target.
- The target is reachable. Some targets are impossible for some inputs. For example, no number of units can make profit equal 5,000,000 if the capacity limit is 1,000 units. The model must either allow it, or you must expect a failure.
The next chapter shows how to lay out a model so these rules hold by design.
Common mistakes at this stage
- Seeking against a cell that is not linked. If the set cell does not depend on the changing cell, Goal Seek reports failure or returns a meaningless number.
- Typing the answer over a formula. Using Goal Seek on a cell that holds a formula destroys that formula. Keep inputs as constants.
- Treating the result as exact. Search tools stop when the result is close enough. Chapter 5 covers this tolerance.
- Forgetting the result is a snapshot. Goal Seek writes a value. If you later change the price or costs, the old break-even does not update. You must run the search again.
Exercises
Exercise
A model has price 40, variable cost 25, and fixed costs 9,000. Operating profit is units × (price − variable cost) − fixed costs. By rearranging the formula, how many units give zero profit? Then state which cell would be the Set cell, the To value, and the By changing cell if you used Goal Seek.
Show answer
Break-even units = 9000 / (40 − 25) = 9000 / 15 = 600 units. In Goal Seek, the Set cell is the operating profit cell, the To value is 0, and the By changing cell is the units sold input cell.
Exercise
Someone runs Goal Seek with the By changing cell set to B5, the cell containing =B1*(B2-B3)-B4. Why is this a mistake, and what should they do instead?
Show answer
The changing cell must hold a constant input. Pointing Goal Seek at a formula cell means the formula would be overwritten by a hardcoded number and the model would stop calculating. They should set B5 as the Set cell and choose an input such as B1 (units sold) as the By changing cell.
Exercise
Give one reason you cannot always solve for an unknown by rearranging the formula, and name the Excel tool you would use when two inputs must be adjusted at once under a budget limit.
Show answer
The unknown may pass through many linked cells or non-invertible functions such as IRR, so no single rearranged formula exists. When several inputs must change together under constraints such as a budget limit, use Solver, because Goal Seek handles only one changing cell and has no constraints.