How to Use Goal Seek in Excel

You’ll find Goal Seek on the Data tab, in the Forecast group, under What-If Analysis.

Click What-If Analysis and select Goal Seek.

Goal Seek under What-If Analysis on the Data tab

The Goal Seek window will ask you to define the cells you need to manipulate:

Goal Seek dialog box with set cell B5, to value 2500 and changing cell B3
  • Set cell: The cell with the formula that gives your result. In this example, cell B5 holds the revenue formula =B3*B4.
  • To value: The result you want. The target revenue is 2,500, so type 2500.
  • By changing cell: The input Excel should change to reach the target. Here that’s units sold, so set it to $B$3.

After clicking OK, the Goal Seek Status window will indicate that a solution has been found.

Otherwise, it displays the closest value it has come up with.

For this example, you need to sell about 658 units to reach a revenue of 2,500.

Goal Seek Status showing 658 units sold for a revenue of 2,500

The good thing about Goal Seek is that it doesn’t change the formulas that have been placed in the cells.

When you accept the results of the Goal Seek, all it does is to put that new number in the input field.

It doesn’t touch anything in your calculation field.

Use Goal Seek With Linked Formulas

Goal Seek isn’t limited to a single formula. It also works when your result depends on a chain of formulas.

As another example, we have additional fields: Cost per unit, Total cost, and Income.

To give you an idea:

  • Cost per unit: A fixed number indicating how much each unit costs.
  • Costs: Total cost. This is derived by multiplying the number of units by the cost per unit.
B9: =B3*B8
  • Income: Calculated field. This net income is obtained by subtracting the Total Cost from the Revenue.
B11: =B5-B9

To find how many units you need to sell for an income of 2,100, use Goal Seek again.

To do this:

  1. Go to the Data tab
  2. Under the Forecast group, click What-If Analysis.
  3. Select Goal Seek
  4. Set the parameters as follows:
    • Set cell: Cell B11
    • To value: 2,100
    • By changing cell: $B$3
  5. Select OK.
Goal Seek dialog box set to reach an income of 2,100 in cell B11 by changing B3

The Goal Seek Status window will pop up and show that it found a solution.

The Units sold figure is now 913.

That’s about 913 units for an income of 2,100. The rules below explain why you’d round up to 914.

Goal Seek result of 913 units sold for an income of 2,100

To accept the results, click on OK.

If you click Cancel, Excel restores the original values.

Goal Seek Rules Worth Knowing

Goal Seek is simple, but a few rules decide whether it works.

  • The Set cell must contain a formula. Goal Seek changes inputs, not results.
  • The By changing cell must hold a value, not a formula, and the Set cell has to depend on it.
  • It changes one cell only. For more than one input, or for limits, use Solver.
  • The answer is often a decimal. In the first example the real result is 657.89, shown as 658 because of the number format. In the second it’s 913.04, so 913 units falls just short of 2,100 and you’d need 914. Round up when you can’t sell part of a unit.
  • Cancel undoes the change. OK keeps the new value in the input cell.

When to Use Solver Instead of Goal Seek

Goal Seek can only change one cell.

If you want to change several cells at once, or add limits such as a price that can’t go above 4.00, use Solver instead. See this Excel Solver example with a step-by-step explanation.

And if you’d rather see a range of results side by side, for example the revenue for ten different unit numbers, a What-If Analysis data table does that.

Frequently Asked Questions

Where is Goal Seek in Excel?

Go to the Data tab and find the Forecast group. Click What-If Analysis and select Goal Seek.

Why is Goal Seek not working?

Check that the Set cell contains a formula and the By changing cell holds a plain value. The formula must also depend on the changing cell, directly or through other formulas. If any of these is missing, Goal Seek either shows an error or finds no solution.

Can Goal Seek change more than one cell?

No. Goal Seek changes one input cell. To change several inputs at once, or to add limits such as a maximum price, use Solver instead.

Does Goal Seek change my formulas?

No. Goal Seek only puts a new number in the input cell. Your formulas stay as they are. Click Cancel in the Goal Seek Status window to return to the original value.

Why does Goal Seek give a decimal answer?

Goal Seek finds the exact input that gives your target, and that is often a decimal. The number format may hide it, so check the real value. Round up when you need whole units, for example units sold.

What is the difference between Goal Seek and a data table?

Goal Seek works backwards from one target to one input value. A data table works forwards and shows the result for a whole list of input values side by side.

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.