Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

Goal Seek in Excel: Find the Input That Hits Your Target

Section: Excel & Google Sheets

Goal Seek in Excel - explanatory illustration for Goal Seek in Excel
Illustration: Goal Seek in Excel

Goal Seek in Excel works backwards from a result. You tell it the value you want a formula to produce and which input cell it may change, and it finds the input that gets there. It is the answer to "what interest rate makes this payment fit my budget" or "what price gives me a 20 percent margin". This guide covers the three boxes in the dialog, a worked loan example, the sign problem that stops most first attempts, and the cases where Solver is the right tool instead. The sample figures are made up.

What Goal Seek does

Goal Seek adjusts one input cell until a formula that depends on it returns the value you asked for. Microsoft describes it as the feature to use when you know the result you want from a formula but not the input value that produces it, and gives the loan example: you know the amount, the term and the payment you can afford, so Goal Seek finds the interest rate. It changes the input cell in place, so the workbook keeps the answer it found.

Before you start

Three things must be true. The cell you set must contain a formula. The cell you change must be referenced by that formula, directly or through a chain of other formulas. And the input cell must hold a value, not text, or Goal Seek has nothing to vary. Lock the references you do not want to move with the absolute reference syntax before you copy the model anywhere. Microsoft states the second condition explicitly: the cell Goal Seek changes must be referenced by the formula in the Set cell box.

The dialog (made up) - explanatory illustration for Goal Seek in Excel
The dialog (made up) (explanatory illustration, not a software screenshot).

The three boxes

  1. Open the Data tab, click What-If Analysis, then Goal Seek. On the Windows ribbon it sits in the Forecast group.
  2. Set cell: the cell with the formula you want to resolve, for example B4.
  3. To value: the result you want, for example -900.
  4. By changing cell: the input Goal Seek may adjust, for example B3.
  5. Click OK. Excel runs the search and reports whether it found a solution.

A worked loan example

Set up four labelled rows: loan amount 100000 in B1, term 180 months in B2, interest rate in B3 left empty, and a payment formula in B4: =PMT(B3/12,B2,B1). The formula divides the annual rate by 12 because the term is in months. With B3 empty, Excel treats the rate as zero and shows a payment of about 555.56, which you can ignore. Now run Goal Seek with Set cell B4, To value -900, By changing cell B3. Excel finds the rate that produces a payment of 900 a month and writes it into B3. Format B3 as a percentage afterwards.

Loan model (made up) - explanatory illustration for Goal Seek in Excel
Loan model (made up) (explanatory illustration, not a software screenshot).

The sign problem

In Microsoft's example the target is entered as -900, not 900, because PMT returns a negative number for money paid out. If you type 900, Goal Seek will search and fail, and the failure looks like a broken model rather than a sign convention. Before you run it, look at the formula's current result and copy its sign. The same applies to any function that treats outflows as negative.

Keep a copy of the input

Goal Seek overwrites the cell you nominate. If that cell held the current price, rate or quantity, the original value is gone unless you recorded it. Two habits prevent the problem: note the starting value in a nearby cell before you run, and keep the scenario on a copy of the sheet when the input matters. Excel's Undo usually reverses a Goal Seek run, but relying on it is not a plan for a workbook you are about to send.

One variable only

Goal Seek changes exactly one cell. If you need to vary two inputs at once, such as both the loan amount and the payment, Microsoft points to the Solver add-in. A one-way or two-way data table is the other option when you want to see a grid of results rather than a single answer, and it keeps every combination on the sheet instead of overwriting one cell.

Target sign - explanatory illustration for Goal Seek in Excel
Target sign (explanatory illustration, not a software screenshot).

Use names so the dialog makes sense

Goal Seek asks for cell addresses, which is fine in a small model and confusing in a large one. If the input cell has a named range, such as InterestRate, you can type the name into the By changing cell box instead of hunting for the address, and the dialog then reads like the question you are asking. It also makes the model easier to hand over: the next person can see which number was solved for without tracing every reference.

When Goal Seek fails

  • "Goal Seek may not have found a solution." The target is outside what the formula can reach with that input, or the relationship is not smooth.
  • It converges on a strange answer. More than one input can produce the target, and it found one of them. Check the result makes business sense.
  • Nothing changes. The changed cell is not referenced by the formula, or it contains a constant where a formula depends on it.
  • It stops immediately. The Set cell is a value rather than a formula.
  • Circular reference warning. The input cell depends on the Set cell somewhere in the chain. Break the loop first.

Goal Seek is a numerical search, so it can land on a value that is mathematically right and practically wrong. Always read the answer against the model rather than accepting it because the dialog said it found a solution.

When it fails - explanatory illustration for Goal Seek in Excel
When it fails (explanatory illustration, not a software screenshot).

Where it earns its place

Break-even volumes, the price that hits a target margin, the saving rate that reaches a deposit goal, the headcount that keeps a cost ratio under a limit. Each of those is one formula and one input, which is exactly the shape Goal Seek handles. When the model needs constraints, such as "at least 40 units and no more than 200", move to Solver, which takes limits as part of the problem.

Questions and answers

Does Goal Seek change my formula?

No. It changes the value in the input cell you nominate. The formula stays as it is.

Can Goal Seek change a text cell?

No. The input must be numeric for the search to work.

Is Goal Seek available in Excel for the web?

The desktop versions are described here. Check your own version before you build a process around it, since feature availability differs between platforms.

How is Goal Seek different from Solver?

Goal Seek solves for one input and one target. Solver handles several variables and can respect constraints.

Can I undo a Goal Seek run?

Undo usually reverses it, but record the original value first if the input matters.

Official references

العربية