Goal Seek in Excel: Find the Number You Need (With Examples)

Usually you change the inputs and Excel calculates the result. Goal Seek works the other way around: you tell Excel the result you want, and it finds the input that gets you there. “What price do I need to make 1,000 profit?” “How big a loan can I afford at 250 a month?”

How Goal Seek works

Go to Data → What-If Analysis → Goal Seek. You fill in three boxes:

Box What to enter
Set cell The cell that contains the formula (e.g. profit). Excel does not change this cell directly; it changes the input below until this result reaches your target.
To value The target number (e.g. 1000)
By changing cell The input cell Excel may change (e.g. price). It must contain a number, not a formula.

Example 1: What price gives my target profit?

A B
1 Price 6.00
2 Cost per item 3.00
3 Items sold per month 500
4 Fixed costs per month 1,500
5 Profit =(B1-B2)*B3-B4 → 0
  1. Data → What-If Analysis → Goal Seek.
  2. Set cell: B5 · To value: 1000 · By changing cell: B1.
  3. Click OK.

Result: Excel changes the price to 8.00. At that price, profit is exactly 1,000.

Excel worksheet after Goal Seek with price 8.00 in B1 and profit 1,000 in B5
Example 1 after running Goal Seek: Excel changed the price in B1 to 8.00, so the profit formula in B5 now returns 1,000.

Example 2: Break-even sales

Using the same model, set B5 to 0 by changing B3 (items sold), with the price at 6.00. Excel finds 500 items, the number you need to sell to cover all costs.

Example 3: How much can I borrow?

With a loan amount in B1 (10,000), annual interest in B2 (5%) and months in B3 (36), the monthly payment is:

=PMT(B2/12, B3, -B1)

That gives about 299.71 per month. To find the loan you can afford at 250 per month, Goal Seek the payment cell to 250 by changing B1. The answer is about 8,341.

More ideas

  • The score you need on the final exam to average 80%
  • The discount that still keeps a 30% margin
  • The monthly savings needed to reach a goal by a date
  • The sales needed to hit a commission target. Combine with the sales tracker.

Tips and limits

  • The “Set cell” must contain a formula that depends on the “By changing” cell.
  • Goal Seek changes one input. For several inputs with limits, use the Solver add-in (File → Options → Add-ins).
  • It overwrites the input cell, so press Ctrl + Z to undo if you just wanted to see the answer.
  • Results may have tiny decimals. Round them if needed.

Google Sheets

Google Sheets doesn’t have Goal Seek built in, but you can install a free Goal Seek add-on from the Google Workspace Marketplace (Extensions → Add-ons → Get add-ons).

Common mistakes

  • The Set cell holds a typed number. Goal Seek needs a formula in the Set cell. If B5 contains 0 instead of =(B1-B2)*B3-B4, Excel stops with an error.
  • The By changing cell holds a formula. Excel can only change a cell that contains a plain number.
  • The formula doesn’t depend on the changing cell. If profit doesn’t use the price cell, changing the price can never reach the target.
  • Expecting an exact answer. Goal Seek stops when it’s very close, so results like 7.9999 are normal. Round the result before using it.

Practice exercises

  1. Your test scores are 70 and 85. What do you need in the third test to average 80?
  2. A product costs you 60 and its list price is 100. What is the biggest discount that still leaves a 30% margin?
  3. You want 5,000 saved in 12 months and already have 1,400. How much do you need to save each month?

Answers

  1. Put the scores in B1:B3 and =AVERAGE(B1:B3) in B4. Set cell B4, To value 80, By changing B3: 85.
  2. Put the discount in B1 and the margin formula =(100*(1-B1)-60)/(100*(1-B1)) in B2. Set cell B2, To value 0.3, By changing B1: about 14.3% (a selling price of about 85.71).
  3. Put the monthly saving in B1 and =1400+12*B1 in B2. Set cell B2, To value 5000, By changing B1: 300 a month.

FAQ

Can Goal Seek change two cells at once?

No. Goal Seek changes one input cell. For several inputs or limits (for example, a price that must stay under 10), use the Solver add-in.

Why does Goal Seek say it may not have found a solution?

The target may be impossible with that formula, or the starting value is far from the answer. Try a starting value closer to what you expect and run it again.

Does Goal Seek work on a Mac?

Yes. It’s in the same place: Data → What-If Analysis → Goal Seek.

Quick summary

  • Data → What-If Analysis → Goal Seek.
  • Set cell = the formula result. To value = your target. By changing = the input.
  • Great for prices, break-even and loan questions.

Related guides

About the author

I’m Abdelazim Nasr, a software developer with more than 20 years of experience building business systems: general ledger reporting, fixed asset management and data synchronisation jobs, using SQL Server, Delphi, Laravel and MySQL. The guides and templates on SimplifyLearn come from that day-to-day work. Spotted a mistake? Let me know.

Leave a Comment