Goal Seek in Excel: Work Backwards to a Target
By ExcelReady TeamUpdated 6 min read
The short answer
Goal Seek in Excel changes one input cell until a formula cell reaches the value you want. Go to Data > What-If Analysis > Goal Seek, then fill in Set cell (the formula), To value (your target) and By changing cell (the input). It handles one input at a time; use Solver for more.
Key takeaways
- Goal Seek lives at Data > What-If Analysis > Goal Seek on both Windows and Mac.
- The Set cell must hold a formula, and the By changing cell must hold a typed value that the formula uses.
- Goal Seek changes one input only. For several inputs or limits, use the Solver add-in.
- The answer doesn't update when your data changes. When the maths is simple, a reverse formula is often better.
On this page+
Goal Seek in Excel works backwards: you tell it the answer you want, and it finds the input that produces it. It's the quickest way to answer questions like "how much growth do we need to hit 60,000?" or "what loan can I afford at 450 a month?" without rearranging any maths yourself. This guide shows how to use it step by step, its limits, and when a simple formula does the same job better.
What Goal Seek does#
Goal Seek changes one input cell until a formula cell shows the value you ask for. It's one of Excel's what-if analysis tools, which let you test "what if this number were different?".
Every Goal Seek needs three things:
| Box in the dialog | What to put there | Example |
|---|---|---|
| Set cell | The cell with the formula whose result you care about | B4 (forecast) |
| To value | The result you want, typed as a number | 60000 |
| By changing cell | The input cell Excel may change | B3 (growth %) |
Excel then tries value after value in the input cell, watching the formula cell, until it reaches the target. It shows the result in a Goal Seek Status box, where you choose OK to keep it or Cancel to go back.
How to use Goal Seek: step by step#
Here is a small sales forecast. Current sales are 48,000 and the forecast adds a growth rate:
| A | B | |
|---|---|---|
| 1 | Item | Value |
| 2 | Current sales | 48,000 |
| 3 | Growth | 10% |
| 4 | Forecast | =B2*(1+B3) → 52,800 |
| 5 | Target | 60,000 |
Your manager wants 60,000. What growth rate gets you there?
- Go to Data > What-If Analysis > Goal Seek. In Windows Excel, What-If Analysis is in the Forecast group. The path is the same in Excel for Mac.
- In Set cell, enter B4, the forecast formula.
- In To value, type 60000. This box takes a number, not a cell reference.
- In By changing cell, enter B3, the growth rate.
- Click OK. Excel reports that it found a solution, and B3 now shows 25%.
- Click OK to keep the new value, or Cancel to restore 10%.
You can check the answer yourself: 48,000 × 1.25 = 60,000. Going from 48,000 to 60,000 is a 25% increase, the same percent change formula covered in the percent change lesson.
Goal Seek with PMT: the loan you can afford#
Goal Seek shines when the formula is hard to rearrange, such as a loan payment. Set up the inputs:
| A | B | |
|---|---|---|
| 1 | Annual rate | 6% |
| 2 | Months | 60 |
| 3 | Loan amount | 20,000 |
| 4 | Monthly payment | =PMT(B1/12,B2,-B3) → 386.66 |
You can pay 450 a month. How much can you borrow?
- Open Data > What-If Analysis > Goal Seek.
- Set cell B4, To value 450, By changing cell B3.
- Click OK.
B3 becomes about 23,276.50. The minus sign before B3 in the PMT formula makes the payment show as a positive number; the guide to the PMT function explains why. To see how that loan is paid off month by month, build a loan amortization schedule.
Excel also has a function that answers this directly: =PV(B1/12,B2,-450) returns the same 23,276.50. PV is the reverse of PMT, so for loans you often don't need Goal Seek at all. For savings, the same idea finds the monthly amount for a goal; see the savings goal calculator.
Goal Seek for a profit target#
Goal Seek also finds the price you need for a profit goal. Say fixed costs are 12,000, each unit costs 18 to make, and you expect to sell 1,500 units:
=B3*(B4-B2)-B1Here B1 is fixed costs, B2 the cost per unit, B3 the units and B4 the price. Use Goal Seek with this profit formula as the Set cell, 9000 as the To value and B4 as the By changing cell. Excel returns a price of 32: 1,500 × (32 − 18) − 12,000 = 9,000.
Set the To value to 0 instead and Goal Seek finds the break-even price, 26. The guide to break-even analysis in Excel shows the formula version of this with a full profit table. The same trick works for discounts: set the final price as the target and let Goal Seek find the percentage, or use the direct formulas in how to calculate a discount.
Rules and limits of Goal Seek#
Goal Seek is simple, but it is strict about how the sheet is set up:
- The Set cell must contain a formula. If it holds a typed number, Goal Seek stops with an error.
- The By changing cell must contain a value, not a formula. It must also feed into the Set cell, directly or through other formulas. If it doesn't, nothing Goal Seek tries can change the result.
- One input only. Goal Seek can't change two cells at once, such as price and units together. For that, or for limits like "price no higher than 40", use the Solver add-in (turn it on under the add-ins settings, then find it on the Data tab).
- The answer is fixed. Goal Seek types a value into the input cell once. If current sales change tomorrow, the growth rate doesn't update. Run it again.
- The answer may be very close, not exact. Goal Seek stops when it gets near the target, so you may see 24.99999% instead of 25%. Round the result, or retype it.
If you see "Goal Seeking with Cell B4 may not have found a solution", check that the input really feeds the formula, that the target is possible, and try a different starting value. Undo with Ctrl+Z on Windows or ⌘Z on Mac if you clicked OK by mistake.
Goal Seek or a reverse formula?#
When you can rearrange the maths, a formula is usually the better choice, because it updates by itself. The sales example is easy to reverse:
=B5/B2-1Target divided by current sales, minus 1, gives 25%, and it changes the moment B2 or B5 changes. Use this rule of thumb:
| Situation | Better tool |
|---|---|
| Simple maths (growth, markup, price for a profit) | A reverse formula |
| A financial function like PMT, RATE or NPER | A matching function (PV, NPER, RATE) or Goal Seek |
| A long chain of formulas across a model | Goal Seek |
| Several inputs or limits | Solver |
| A one-off question in a meeting | Goal Seek |
Being able to explain both is a good sign in a job test: Goal Seek shows you know Excel's tools, and the formula shows you understand the numbers. Budget questions like these come up often, which is why the budget maths lesson practises them.
Practise it#
Try the exercise on this page: work out the growth rate Goal Seek would find, using one formula. Then practise percent change in a live spreadsheet and work through budget maths step by step. You type each formula, and ExcelReady checks it instantly.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Goal Seek would find the growth rate in B3 that makes the forecast in B4 equal the target in B5. Work it out with a formula instead. In B6, type =B5/B2-1 and press Enter.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Value | |||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | Growth needed | |||
| 7 | ||||
| 8 | ||||
| 9 |
Tip: The target divided by current sales is 1.25. Subtract 1 to get the growth: 0.25, which is 25%.
Practise this in a lesson
Frequently asked questions
Where is Goal Seek in Excel?
On the Data tab, click What-If Analysis, then Goal Seek. In Windows Excel it sits in the Forecast group. The path is the same in Excel for Mac.
Why does Goal Seek say it may not have found a solution?
The target may be impossible with the formula you have, the By changing cell may not feed into the Set cell, or the starting value may be too far away. Check the link between the cells and try a different starting value.
Can Goal Seek change more than one cell?
No. Goal Seek changes exactly one input cell. To change several inputs at once, or to add limits such as a maximum budget, use the Solver add-in.
Does Goal Seek update automatically?
No. It types a fixed value into the input cell once. If your other inputs change later, run Goal Seek again, or replace it with a formula that calculates the answer directly.
How do I undo Goal Seek?
Click Cancel in the Goal Seek Status box to keep the original value. If you already clicked OK, press Ctrl+Z on Windows or Command+Z on Mac to undo the change.