How to use Goal Seek in Excel to work backwards from a target result to the one input that produces it. The steps and dialog fields, a profit model solved three ways (units for a target profit, price for a target profit, and break-even), the algebra that checks each answer, and when to use Solver or a data table instead.
Goal Seek in Excel finds the input value that makes a formula return the result you want. You name the formula cell, the target and the one input Excel may change, and Excel adjusts that input until the formula hits the target. With a contribution of $18.00 a unit and fixed costs of $180,000, Goal Seek finds that 15,000 units deliver a $90,000 profit.
Most spreadsheet work runs forwards: inputs in, result out. Goal Seek runs backwards. In Microsoft's words, it "takes a result and determines possible input values that produce that result" (Introduction to What-If Analysis).
It has one hard limit: "Goal Seek works only with one variable input value" (Microsoft Support, Goal Seek). One input, one target, no constraints.
Two things: an input cell holding a constant, and a formula that depends on it, directly or through other cells. The profit model used throughout:
| Cell | Item | Value |
|---|---|---|
| B1 | Units sold | 12,000 |
| B2 | Price per unit (USD) | 45.00 |
| B3 | Variable cost per unit (USD) | 27.00 |
| B4 | Fixed costs (USD) | 180,000 |
| B5 | Profit (USD) | 36,000 |
B5 holds the formula:
=B1*(B2-B3)-B4
12,000 × (45 − 27) − 180,000 = 36,000. The difference between price and variable cost, $18.00, is the contribution per unit; as a share of price it is the contribution margin ratio, 40%.
Three runs on the same model, each starting from the values in the table above.
| Run | Set cell | To value | By changing | Result |
|---|---|---|---|---|
| 1. Units for a 90,000 profit | B5 | 90,000 | B1 | 15,000 units |
| 2. Price for a 90,000 profit at 12,000 units | B5 | 90,000 | B2 | 49.50 |
| 3. Break-even units | B5 | 0 | B1 | 10,000 units |
Run 1 says the target needs 3,000 more units than the plan. Run 2 holds units at 12,000 and asks what price closes the gap instead: $49.50, a 10% increase on $45.00. Run 3 sets profit to zero, the break-even point. Before run 2, put B1 back to 12,000; Goal Seek leaves its last answer in the cell.
Goal Seek is iterative: it tries values and narrows in. The algebra is exact, so use it to check each result.
Units for a target profit = (Fixed costs + Target profit) / (Price − Variable cost)
Price for a target profit = Variable cost + (Fixed costs + Target profit) / Units
Break-even units = Fixed costs / (Price − Variable cost)
| Run | Algebra | Exact answer |
|---|---|---|
| 1 | (180,000 + 90,000) / (45 − 27) | 15,000 |
| 2 | 27 + 270,000 / 12,000 | 49.50 |
| 3 | 180,000 / 18 | 10,000 |
The same checks as Excel formulas, which should match the Goal Seek results:
=(B4+90000)/(B2-B3)
=B3+(B4+90000)/B1
=B4/(B2-B3)
Then put each answer back into the worksheet and confirm B5 shows the target. That last step is the one that catches a wrong cell reference; five checks before you trust a spreadsheet total covers the rest.
Excel's what-if tools answer different questions:
| Tool | Inputs changed | Use it when |
|---|---|---|
| Goal Seek | One | You have one target and one lever |
| Solver | Several | You have constraints, or want a maximum or minimum |
| Data Table | One or two, over a list of values | You want a grid of outcomes to compare |
Solver is an add-in: enable it once under File > Options > Add-ins, choose Excel Add-ins in the Manage box and click Go. It then appears on the Data tab, and its objective can be set to Max, Min or Value Of. A Data Table, by contrast, takes "only one or two variables" but many values for each, so a price-by-volume grid of profit is a Data Table job.
Goal Seek cannot change two inputs in one run. There are two ways round it.
Solver, when the inputs interact: for example, change both price and units to reach $90,000 profit with price no higher than $48.00 and units no higher than 14,000. Solver handles the constraints; Goal Seek cannot.
A short VBA loop, when you need the same Goal Seek on many rows, such as the units each product line needs to hit its own target. With the profit formula in column E and units in column A:
Sub GoalSeekEachRow()
Dim r As Long
For r = 2 To 20
Range("E" & r).GoalSeek Goal:=Range("F" & r).Value, ChangingCell:=Range("A" & r)
Next r
End Sub
Column F holds each row's target. Run it on a copy, because each row's input is overwritten.
For more spreadsheet techniques on commercial data, see sales analytics in Excel, and for working backwards from a target to the effort it needs, capacity is arithmetic.
Goal Seek answers "what would it take" for one model in one workbook. Covirage's tools compute the same backward-solved figures, such as the volume needed to hit a margin target, directly from your own ledger and plan files, and show the algebra behind each one; the external AI model explains the result and never does the arithmetic. See FP&A reporting for targets, actuals and the gap between them every month, and quota setting from potential for how targets get set in the first place. To test several inputs at once, see scenario analysis in Excel.
On Windows, press Alt, then A, W, G in sequence to open the Goal Seek dialog through the ribbon key tips. There is no single-key shortcut. On a Mac, use Data > What-If Analysis > Goal Seek from the ribbon.
No. Goal Seek changes one input cell to hit one target. To change several inputs, or to add constraints such as a maximum price, use the Solver add-in; to run Goal Seek on many rows, use a short VBA loop.
Goal Seek finds one input value for one target, with no constraints. Solver can change several inputs, respect constraints, and maximize or minimize a result as well as hit a value. Solver is a free add-in you enable once.
Common reasons: the target is impossible for the formula, the input cell does not feed the formula, the input holds a formula, or the formula is not continuous. Try a different starting value and check the chain of references.