Sub topic 12
Goal Seek, Solver, or data table: which one to use
This chapter assumes you can run Goal Seek and set up a basic Solver model. You should know what a set cell, a changing cell, and a constraint are. You should also be comfortable with formulas such as PMT and NPV. The aim is to pick the right tool for a question before you spend time building the wrong one.
The three tools answer different questions
Goal Seek, Solver, and a data table all change inputs and watch an output. They differ in what you ask.
- Goal Seek asks: what single input value makes this formula equal a number I choose?
- Solver asks: what combination of inputs makes this formula as large or small as possible, or equal to a target, while obeying my rules?
- A data table asks: what does this output look like across a range of inputs I list?
Goal Seek and Solver search for an answer. A data table does not search. It evaluates the model at every input you give it and shows the grid of results. That makes it a different kind of tool, and it is often the best choice when the real question is "how sensitive is this?" and not "what value hits the target?"
Decision criteria
Ask these questions in order.
- Do you need one number or a picture? If you need a single solved value, use Goal Seek or Solver. If you need to see how the output behaves across many inputs, use a data table.
- How many inputs change? Goal Seek changes exactly one cell. If two or more inputs must move together, use Solver.
- Is there a rule the answer must obey? Goal Seek has no constraints. If the answer must stay within a budget, a capacity, a minimum cash balance, or a whole-number limit, use Solver.
- Are you hitting a target or optimizing? Goal Seek only drives a cell to a value. Solver can also maximize or minimize. If you want "the most profit" and not "profit of exactly 0," use Solver.
- Does the answer need to refresh automatically? Data tables recalculate with the workbook. Goal Seek and Solver results are static values left in the input cells. They go stale when anything else in the model changes.
The table summarizes the comparison.
| Feature | Goal Seek | Solver | Data table |
|---|---|---|---|
| Changing cells | One | Many | One or two inputs, varied across a grid |
| Constraints | None | Yes | None |
| Objective | Hit a value | Maximize, minimize, or hit a value | None. It shows results |
| Output | One solved input | Set of solved inputs | Grid of results |
| Updates automatically | No | No | Yes |
| Works with integer or binary limits | No | Yes | Not applicable |
| Setup effort | Low | Medium to high | Low |
Worked comparison: one question, three tools
Take the break-even model from earlier in the tutorial. Price is 50, variable cost is 30, fixed costs are 15,000, and operating profit is =B1*(B2-B3)-B4, where B1 is units sold.
Question 1: how many units do we need to break even? One input changes and one target applies. Use Goal Seek. It sets B5 to 0 by changing B1 and returns about 750 units.
Question 2: how does profit change as volume moves from 500 to 1,500 units? You do not need one answer. You need the profile. Use a one-variable data table with volumes down a column and the profit formula at the top. The table shows losses below 750 units and gains above it, all at once.
Question 3: at what price and volume combination do we reach a profit of 5,000, given that volume cannot exceed 900 units? Two inputs can move, and a limit applies. Goal Seek cannot do this because it cannot change two cells or respect the 900 cap. Use Solver with price and units as variable cells, a constraint of units at most 900, and an objective value of 5,000.
Notice that the same model supports all three questions. The tool follows from the shape of the question, not from the model.
Where data tables fit
A data table is a good fit when you want to:
- Present a sensitivity analysis to a reader who will not run a solver.
- Check whether a solved answer sits in a stable region, or on a cliff.
- Find an approximate solution by eye before running Goal Seek, so you can give it a sensible starting value.
A two-variable data table can show profit across combinations of price and volume. You can then read off where the sign changes. This is not a precise solve, but it often reveals that the target is reachable in many ways, which tells you that Solver with constraints is the better next step.
A data table also has limits. Its input cells must be on the same sheet as the table. It recalculates the whole model for each cell, so a large grid on a heavy model can slow the workbook. It also cannot optimize, so you still read the best result yourself.
Combining the tools
The tools work well together.
- Table, then Goal Seek. Build a data table to see roughly where the target sits. Start Goal Seek near that value so it converges on the right root, not a distant one.
- Goal Seek, then table. After solving for a break-even value, build a table around it to show how fragile it is. A break-even at 750 units looks different if profit changes sharply for small moves in price.
- Solver, then table. After Solver returns a product mix, vary one constraint, such as machine hours, across a table. This is a manual form of sensitivity analysis. It shows how much extra capacity is worth, though a Solver sensitivity report gives similar information for linear models.
Common mistakes in tool choice
- Using Solver for a one-variable question. It works, but it adds setup and invites errors in constraints and method. Goal Seek is simpler and easier for a reviewer to follow.
- Using Goal Seek for a problem with competing inputs. If you ask Goal Seek to find a growth rate while a margin input is also uncertain, you hide an assumption. Fix the other inputs explicitly or use Solver.
- Using Goal Seek when the target has several solutions. A function such as an IRR-based target can cross the goal more than once. Goal Seek returns whichever root it reaches from the starting value. A data table shows all the crossings.
- Treating a solved value as live. Goal Seek and Solver paste values into the changing cells. If you later change the price, the old solved units value no longer produces zero profit. Add a visible check cell, such as
=B5, next to the result, and label the date or scenario it was solved for. - Using a data table where a decision is needed. A table shows many results but does not choose among them. If you must pick the best allocation under limits, run Solver.
A short selection guide
| Situation | Best tool |
|---|---|
| Required sales growth to reach a profit target | Goal Seek |
| Loan amount that gives a chosen payment, with one unknown | Goal Seek |
| Product mix that maximizes profit under capacity | Solver |
| Funding mix that minimizes cost with limits on each source | Solver |
| Whole-number allocation of projects to a capital budget | Solver |
| Profit across a range of prices and volumes | Data table |
| Reader-facing sensitivity that updates when assumptions change | Data table |
| Repeated solves across many scenarios | VBA or Python, covered in the next chapter |
Checking the choice with a diagram
The flow below follows the decision criteria from earlier in this chapter.
Verifying the result whichever tool you use
Whatever you choose, test the answer independently.
- Put the solved inputs back into the model and confirm the target cell shows the expected value. Allow for the small tolerance the search leaves behind.
- Change one input by a small amount and confirm the output moves in the direction you expect.
- For break-even, compute the answer by hand: fixed costs divided by contribution per unit, 15,000 / 20 = 750.
- For larger models, reproduce the solve outside Excel, as the last chapter shows with Python.
Exercise
A treasury analyst needs to know the interest rate at which a loan's monthly payment equals 2,000, with the amount and term fixed. A second analyst wants to see the payment for every rate from 3% to 9% in 0.5% steps, to show a manager. A third wants to split 1 million between four funding sources to minimize cost, with no source above 40%. Which tool suits each person, and why?
Show answer
The first analyst has one unknown input and one target value with no constraints, so Goal Seek fits: set the payment cell to 2,000 by changing the rate. The second analyst needs a range of results that updates when the model changes, so a one-variable data table with the rates down a column fits. The third has four variables, a limit on each, and a cost to minimize, so Solver fits, with a cost objective and constraints that each source is at most 40% and that the shares sum to 100%.
Exercise
You use Goal Seek to find the units that give zero profit, then your manager raises the price from 50 to 55. The cell still shows 750 units. Is the model still at break-even? What should you do?
Show answer
No. Goal Seek left a static value in the units cell, so it does not respond to the price change. At a price of 55 the contribution per unit is 25, and break-even is 15,000 / 25 = 600 units. Run Goal Seek again, or use a formula for break-even as a cross-check. A check cell that shows the current profit makes the stale result visible straight away.