Yes—Excel Goal Seek is easy to use once you know which three cells to identify: the formula cell, the result you want, and the one input Excel may change. In Microsoft Excel for Microsoft 365 on Windows, choose Data > Forecast > What-If Analysis > Goal Seek, then enter those three details.
What Goal Seek Does
Goal Seek works backward from a result. Ordinarily, you enter an input in a worksheet and a formula calculates the outcome. With Goal Seek, you specify the outcome you want and let Excel find an input value that makes a formula return that outcome.
For example, a business might know its fixed costs and profit per item but not how many items it must sell to break even. Goal Seek can adjust the number of items until a profit formula returns zero. It changes a cell value; it does not rewrite the formula or build a forecast for you.
The feature is part of Excel’s What-If Analysis tools. It is designed for a single unknown input and a single target result. That makes it useful for quick questions such as what price produces a specified revenue, what score is needed for a target average, or what quantity results in a chosen profit. It is not a general-purpose optimizer for several changing inputs.
How to Set Up a Worksheet
Before opening Goal Seek, make sure the target result is calculated by a formula and that the input you want Excel to adjust is in its own cell. A clear layout makes it easier to choose the correct references and to review the answer afterward.
For a simple break-even model, use this layout: B2 contains the selling price per item, B3 contains the variable cost per item, B4 contains fixed costs, B5 contains the number of items sold, and B6 calculates profit. With those values in place, enter this formula in B6:
=(B2-B3)*B5-B4
For an illustrative example, put 25 in B2, 15 in B3, 5000 in B4, and 400 in B5. The formula returns -1000: each item contributes 10 toward fixed costs, so 400 items contribute 4000, leaving a 1000 shortfall against 5000 in fixed costs. B6 is the target formula cell, and B5 is the input to change.
Use values in the same units throughout the model. If costs are entered in dollars, keep the price and cost inputs in dollars; if the quantity represents items, do not accidentally enter a value representing dozens. Goal Seek follows the formulas and cell references as written, so a modeling mistake can produce a precise answer to the wrong question.
Steps to Run Goal Seek
- Select a cell in the worksheet, then choose Data > Forecast > What-If Analysis > Goal Seek.
- In Set cell, enter or select the cell containing the formula whose result you want to control. In the example, this is B6.
- In To value, type the target result. To find break-even, enter 0.
- In By changing cell, enter or select the input cell Excel may adjust. In the example, this is B5.
- Select OK and let Excel calculate. Review the result in the Goal Seek Status dialog, then choose OK to keep the solution or Cancel to restore the prior value.
For the example, Goal Seek changes B5 from 400 to 500. At 500 items, the contribution is 500 × (25 − 15), or 5000; after subtracting 5000 in fixed costs, the formula returns zero. The price and costs remain as entered, while the quantity cell changes.
The dialog’s labels are a useful way to check your setup: Set cell means the formula result, To value means the desired result, and By changing cell means the single input Excel is allowed to alter. If the wrong cell is selected in either of the first two boxes, Goal Seek may fail or answer a different question.
What Makes a Good Goal Seek Problem
A suitable problem has a formula that depends on one adjustable input. The formula can also depend on other fixed inputs, such as price, costs, or a tax rate, but Goal Seek changes only the one cell you identify. The target should be a value the formula can plausibly reach.
Here are some practical examples:
- Break-even quantity: Find the number of items that makes a profit formula equal zero.
- Target revenue: Find the units sold that make price multiplied by quantity equal a specified revenue.
- Required score: Find a final-exam score that makes a weighted course-average formula reach a chosen result.
- Production planning: Find the number of units needed for a formula-based output total to meet a target.
These are mathematical examples, not advice about a business, course grade, or financial decision. In any model, confirm that the assumptions and inputs reflect the real situation before relying on the result.
Limits and Common Problems
Goal Seek adjusts one changing cell at a time. If your question is which combination of labor hours, material quantities, and prices maximizes profit while staying under a budget, it is not enough to specify one target and one input. Excel Solver is designed for optimization problems with multiple changing cells and constraints; Goal Seek is the simpler tool for one input and one target.
It also does not enforce business rules for you. In the break-even example, a quantity of 500 is a whole number and makes sense. In another model, the answer might be 500.4 units. If the input must be a whole number, Goal Seek does not automatically round to a feasible solution and recalculate the result. You must decide how to handle that requirement and check the resulting formula value.
A result can depend on the starting value. Formulas with curves, powers, or other nonlinear relationships may have more than one solution, or may not have a solution for the target. Goal Seek uses numerical calculation, so it searches for a value rather than proving that its answer is the only possible one. If the result seems surprising, try a sensible starting value, inspect the formula, and test nearby input values.
Other frequent issues include selecting a constant instead of a formula cell, choosing an input cell that the formula does not use, or entering a target in the wrong units. A blank or text value in the changing cell can also prevent the model from behaving as intended. Check the cell references, formulas, and number formats before assuming the tool itself is at fault.
Finally, Goal Seek may not achieve an exact target in every case. The calculation may stop close to the target, especially when the formula is complicated or the target is difficult to reach. Check the actual value shown in the formula cell and decide whether the difference is acceptable for your purpose. Do not treat a displayed rounded number as proof that the underlying value is exact.
Goal Seek Compared with Other Excel Tools
Goal Seek, a data table, and Solver all help explore what-if questions, but they answer different kinds of questions. Goal Seek is typically the quickest choice when you already know the desired result and want one input that produces it.
- Use Goal Seek when one input must produce one specified formula result.
- Use a data table when you want to compare many possible values for one or two inputs and see how a formula’s result changes across them.
- Use Solver when you want to maximize or minimize a result, adjust multiple cells, or apply constraints such as minimums, maximums, or whole-number requirements.
A data table shows a set of outcomes for selected input values; it does not simply replace Goal Seek’s backward search. Solver can handle more complex optimization, but it requires a Solver add-in and a correctly defined objective, variable cells, and any constraints. For a one-cell target question, that extra setup is usually unnecessary.
Availability and Saving the Result
These steps are for the desktop version of Excel for Microsoft 365 on Windows. In Excel for Mac, Goal Seek is also available from the Data tab’s What-If Analysis menu, although the ribbon layout can differ slightly. Excel for the web does not provide the same Goal Seek command; open the workbook in the desktop app to use it.
Goal Seek changes the worksheet’s input value, so the result remains in the workbook if you keep it. Consider recording the original input and the assumptions behind the model before accepting a solution, especially if you want to compare scenarios later. You can copy the worksheet or save a separate version when preserving the original inputs matters.
There is no need to enable a separate add-in for the standard Goal Seek feature in desktop Excel. If you cannot find it, check that you are using the desktop application and look under the Data tab for What-If Analysis. For problems requiring several adjustable values or restrictions, check whether Solver is available in your Excel installation.
Frequently Asked Questions
Is Goal Seek easy for beginners?
Yes. If the worksheet already has a working formula, you only need to identify its result cell, the target result, and one input cell to change. The main challenge is usually setting up the model correctly, not operating the dialog.
Can Goal Seek change more than one cell?
No. Goal Seek changes one cell per run. To adjust several variables or add constraints, use Solver if the problem is an optimization task, or run separate Goal Seek calculations when the questions are independent.
Does Goal Seek change or delete my formula?
No. It changes the value in the selected changing cell and recalculates formulas that depend on it. The formula in the Set cell remains in place. You can cancel from the status dialog to restore the previous input rather than keeping the proposed solution.
Why can’t Goal Seek find my target?
The formula may not depend on the changing cell, the target may be unreachable, or the starting value may lead the numerical search in an unhelpful direction. Verify the cell references and try a reasonable starting value. Also check whether the formula’s result actually changes when you manually change the proposed input.
Can Goal Seek find an exact whole-number answer?
It does not impose a whole-number rule. It may return a decimal input even when your real-world quantity must be an integer. Round or choose a feasible whole-number value yourself, then check what the formula returns at that value.
Related
- Excel Box Plot Explained: Create and Read One
- Excel Box Plot: Show the Median Line, Not the X
- Excel Box and Whisker Plot on a Log Scale?
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Outlook Scheduling Poll: Add Meeting Times to EmailYes. In new Outlook for Windows, start a message, add the people you want to meet with, then…
- Free Monthly Budget Template for Google Sheets: SetupYes—Google Sheets can be used for a free monthly budget, either by choosing a budget template from the…
- Excel Freeze Panes Shortcut: Keys and How It WorksIn Excel for Microsoft 365 on Windows, select the cell below and to the right of the rows…
- Repeating Header in Word: How to Add One to Every PageTo add a repeating page header in Word, open Insert > Header, choose a layout, and enter the…
- Excel Copy and Paste Rows Into Columns: 3 Easy MethodsTo copy a row into a column in Excel for Microsoft 365 on Windows, select the row cells,…
- Excel Keyboard Shortcut to Hide a ColumnIn Excel for Microsoft 365 on Windows, select one or more column headers and press Ctrl+0 to hide…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.