Work backward to a target with Goal Seek
What-if analysis9 minPremium
Builds on Your first formula.
The owner of a coffee roastery in Vancouver knows the profit she needs this quarter. She doesn't know the price per bag that gets her there, and trying prices by hand takes a dozen guesses.
How it works
A formula works forward, from the price and the volume to the profit. Goal Seek works backward: you give it the result you want, and it changes one input until the formula shows that result. Choose Data > What-If Analysis > Goal Seek, on Windows and on a Mac, and fill in three boxes.
| Row | A | B |
|---|---|---|
| 1 | Box | What goes in it |
| 2 | Set cell | The cell with the formula, such as the profit |
| 3 | To value | The result you want, typed as a number |
| 4 | By changing cell | The input Goal Seek may change, such as the price |
The set cell must hold a formula. The changing cell must hold a typed value that the formula uses, directly or through other formulas. Goal Seek tries values until the formula shows the target, then reports in the Goal Seek Status box. Click OK to keep the new value, or Cancel to put the old one back.
Goal Seek changes one input. To change several at once, or to keep them within limits, use Solver.
Example
The roastery sells 1,000 bags a quarter at a cost of $12.00 a bag, plus $8,000 of fixed costs. The owner sets B5, the profit, to 10000 by changing B1, the price.
- Step 1: The profit formula reads the price in B1. At $26.00, the profit is $6,000.
- Step 2: Goal Seek is told that B5 must show $10,000.
- Step 3: It changes B1 until B5 does, at $30.00.
Common mistakes
- The price as the set cell. The set cell is the result you want to hit, and Excel says it must contain a formula.
- A changing cell that holds a formula, such as an order count worked out from visitors. Goal Seek changes typed values only, so pick the input under the formula.
- A changing cell the formula doesn't use, or a target it can't reach. Goal Seek reports that it may not have found a solution.
In short
- Goal Seek finds the input that makes a formula show the value you want.
- Set cell is the formula, To value is the target, and By changing cell is one typed input.
- For several inputs or limits, use Solver.
Practice
Premium5 exercises: 1 find-it task, 3 dialogs and 1 quiz question.
Practice is part of Premium
Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.
Have one? Sign in