Excel Goal Seek: What It Does and How to Use It
Excel’s What-If Analysis Goal Seek tool finds the input value needed to produce a desired result in a formula. You enter the formula cell, the target result, and the input cell to change, and Excel calculates the exact input. This article explains how Goal Seek works, when to use it, and how to avoid common mistakes.
What Is Goal Seek?
Goal Seek is a built-in Excel feature under the What-If Analysis menu (Data tab > Forecast group). It solves a single equation with one unknown by iteratively testing values until the formula returns your target number. It is part of a family of tools that also includes Data Tables and Scenario Manager, but Goal Seek is the simplest: it handles one variable and one formula.
For example, if you know the monthly payment you want on a loan and the interest rate, Goal Seek can tell you the loan amount you can afford. Or, if you need a project to finish in 90 days, you can find the required daily output. It works with any formula that depends on one input cell, as long as the relationship is continuous (no sudden jumps).
How to Use Goal Seek (Step-by-Step)
- Set up your worksheet with a formula that references at least one input cell. For instance, in B1 enter
=A1*1.1(10% increase). - Go to Data tab > What-If Analysis > Goal Seek…
- In the dialog box, set Set cell to the formula cell (B1).
- In To value, type the target result (e.g., 110).
- In By changing cell, select the input cell (A1).
- Click OK. Excel runs iterations and shows the solution. Click OK again to keep it or Cancel to revert.
Goal Seek only changes one cell. If you need to vary two or more inputs to hit a target, you need Solver (an add-in) or a data table.
When to Use Goal Seek (and When Not To)
Use Goal Seek when you have a clear formula and a single unknown input. Common scenarios include:
- Breakeven analysis: find the sales volume needed for profit to be zero.
- Loan payments: determine the principal for a fixed monthly payment.
- Project schedules: calculate the number of units per day to meet a deadline.
- Grade calculations: find the exam score needed to achieve a final grade.
Do not use Goal Seek when:
- The formula is not continuous or has multiple solutions (e.g.,
=A1^2with target 4 could be 2 or -2; Goal Seek may only find one). - You need to change more than one input simultaneously.
- You want to see a range of results (use a Data Table instead).
- The answer is a date or text – Goal Seek works only with numeric values.
How Goal Seek Works Behind the Scenes
Goal Seek uses an iterative algorithm (similar to the secant method) to converge on the answer. It starts with the current value of the changing cell, evaluates the formula, and adjusts the input based on the difference from the target. It repeats until the result is within a tolerance (default precision is 0.001) or until it has performed 100 iterations. If it cannot find a solution, it shows “Goal Seek may not have found a solution.�
Because it is a numerical method, it can fail if the formula is discontinuous, if the target is outside the possible range (e.g., a percentage above 100% when the formula caps at 100), or if the starting value is far from the solution. In those cases, try a different starting value or use Solver with constraints.
Common Mistakes and How to Avoid Them
- Wrong cell references: Ensure the “Set cell� contains a formula, not a typed number. If you type a value, Goal Seek will not work.
- Unit mix-ups: If your formula uses percentages, remember that Excel stores 10% as 0.1. Enter 10% or 0.1, not 10.
- Target value not realistic: For example, if you ask for a monthly payment lower than the interest alone, Goal Seek may return a negative principal.
- Circular references: If your formula indirectly depends on the changing cell through a circular path, Goal Seek may produce incorrect results or errors.
- Ignoring precision: Goal Seek stops when the result is within 0.001. For financial calculations, you may want to round the result to cents manually.
Goal Seek vs. Solver vs. Data Tables
Excel offers three What-If Analysis tools, each for different problems:
- Goal Seek: One variable, one formula, one target. Fast and simple.
- Data Tables: Show how changing one or two inputs affects one or more formulas. They do not find a target; they list possibilities.
- Solver: Handles multiple variables, constraints, and optimization (maximize, minimize, or target). It is an add-in that must be enabled.
For example, if you want to see how different interest rates affect monthly payments, use a Data Table. If you want to find the combination of price and quantity that maximizes profit, use Solver. Goal Seek is only for “what input gives this exact output?�
Limitations and Accuracy
Goal Seek is a numerical approximation, not an exact algebraic solver. Its accuracy depends on the formula and the starting point. For most practical purposes, the default tolerance (0.001) is fine, but for high-precision work you can achieve better accuracy by pre-scaling your numbers (e.g., work in cents instead of dollars) or by using Solver with a tighter convergence.
Another limitation: Goal Seek cannot handle array formulas or formulas that reference external workbooks that are closed. It also does not work if the formula contains volatile functions like RAND() because each iteration changes the random value. In such cases, replace the volatile function with a fixed value.
Frequently Asked Questions
Why is Goal Seek not finding a solution?
This usually means the target value is impossible with the current formula, or the formula is discontinuous. Check if the formula can actually produce the target. For example, =A1^2 cannot produce a negative number. Also try changing the starting value of the input cell to something closer to the expected answer.
Can Goal Seek change multiple cells at once?
No. Goal Seek changes only one cell. For multiple inputs, use Solver. Solver allows you to set constraints and change several cells to reach a target or optimize a value.
Does Goal Seek work with percentages?
Yes, but be careful with how you enter percentages. In Excel, 10% is stored as 0.1. If your formula multiplies by a percentage cell, enter 10% or 0.1, not 10. Otherwise, the result will be off by a factor of 100.
How accurate is Goal Seek?
Goal Seek stops when the formula result is within 0.001 of the target. For most purposes, that is accurate enough. If you need more precision, you can round the result or use Solver with a lower convergence tolerance.
Can Goal Seek be used for dates or text?
No. Goal Seek works only with numeric values. If you need to find a date, convert it to a serial number first, or use a formula that returns a number and then format it as a date.
Is Goal Seek the same as Solver?
No. Goal Seek is a simple one-variable solver. Solver is a more powerful optimization tool that can handle multiple variables, constraints, and linear or nonlinear problems. For basic “what input gives this output,� Goal Seek is sufficient.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.