Foxcolab
Skip to content

Use Goal Seek to find the input you need in Sheets

Use Goal Seek in Foxcolab Sheets to work backward from a result you want, such as a monthly EMI, a profit target or a passing grade, to the input that produces it.

Updated 3 min read

In short

Goal Seek in Foxcolab Sheets finds the value of one input cell that makes a formula reach a target. Select the formula cell, choose Data, What-if analysis, Goal Seek…, enter the target in To value and the input cell in By changing cell, then select Solve. Sheets shows the answer first and changes nothing until you select Keep this value. It runs on your device.

Key takeaways

  • Choose Data → What-if analysis → Goal Seek…, or Tools → Goal Seek….
  • Set cell must hold a formula. By changing cell must hold a typed value that the formula depends on.
  • Both cells must be on the sheet you're working in.
  • Sheets shows the answer before changing anything. Select Keep this value to write it in.
  • For several inputs or limits such as "at most 40 hours", use Tools → Solver… instead.

Last reviewed 3 December 2026

Goal Seek in Foxcolab Sheets works a formula backward. You tell it the result you want, and it finds the value of one input cell that produces it. Choose Data → What-if analysis → Goal Seek…, fill in three boxes and select Solve. Sheets shows the answer first and changes nothing until you keep it.

Use it for questions like "how big a loan can I take if I can pay ₹15,000 a month?", "what price gives me ₹90,000 of profit?" or "what do I need on the final exam to pass?".

Before you start#

Goal Seek needs two cells on the same sheet:

  • a formula cell that shows the result, and
  • an input cell with a typed number that the formula uses, directly or through other cells.

The input can't be a formula itself. If your input is calculated, point Goal Seek at the typed number that calculation starts from.

Find the input for a target#

This example finds the largest home loan you can repay at ₹15,000 a month. Set up the sheet like this:

AB
1Loan amount1000000
2Annual interest rate9%
3Years5
4Monthly EMI=PMT(B2/12, B3*12, -B1)

B4 shows the EMI for ₹10,00,000: about ₹20,758.36. That's too much, so ask Goal Seek how far the loan must come down.

  1. Select the formula cell

    Click B4. Goal Seek fills it in as the Set cell.

  2. Open Goal Seek

    Choose Data → What-if analysis → Goal Seek…, or Tools → Goal Seek….

  3. Enter the target

    Type 15000 in To value.

  4. Choose the input

    Type B1 in By changing cell, then select Solve.

  5. Check and keep the answer

    Sheets says Found a solution. and shows B1 at about 722600.60 with B4 at 15000. Select Keep this value to write it into B1, or Back to try another target.

So at 9% over five years, ₹15,000 a month repays a loan of about ₹7,22,600. Change B3 to 7 years and run Goal Seek again to see how a longer term changes the answer.

Goal Seek keeps the exact number it found. To use a round figure, type it into B1 yourself afterwards. Changed your mind? Edit → Undo puts the old value back.

When Goal Seek can't find an answer#

MessageWhat to check
Couldn't reach the target exactly.The formula may not depend on the input cell, or the target may be impossible, such as a negative payment. Sheets shows the closest value it reached, but Keep this value stays unavailable.
B4 must contain a formula.Set cell points at a typed number. Point it at the cell with the formula.
The cell to change must contain a value, not a formula.Pick the typed number the calculation starts from.
Enter the cell with the formula, for example B10.The address is mistyped or on another sheet. Both cells must be on the sheet you're on.

A formula that shows an error, such as #DIV/0!, can't reach a target either. Fix the error first.

Goal Seek, Solver and scenarios#

Goal Seek changes one cell to hit one number. For bigger questions, Sheets has:

  • Tools → Solver…, which changes several cells at once and respects limits, such as "each shift at most 8 hours". It can also find the largest or smallest possible result.
  • Data → What-if analysis → Scenario manager…, which saves sets of inputs, such as "best case" and "worst case", so you can switch between them.

For worked examples, see Make a break-even analysis, which uses Goal Seek to find the price you need, and Make a loan amortization schedule.

Your numbers stay on your device#

Foxcolab Sheets is end-to-end encrypted, and it calculates in your browser on the copy your device has decrypted. Goal Seek tries its values there, so a salary model or a loan plan is never sent to a server to be solved.

Frequently asked questions

Why does Goal Seek say "Couldn't reach the target exactly"?

No value of the input cell makes the formula hit your target, or the formula doesn't depend on that cell. Check that the formula really uses the input, directly or through other cells, and that the target is possible. A loan payment, for example, can't be zero or negative.

Can I undo Goal Seek?

Yes. Keep this value is a normal edit, so Edit, Undo puts the old number back. Until you select Keep this value, nothing in the spreadsheet changes.

Can Goal Seek change more than one cell?

No. Goal Seek changes one input cell. To change several cells at once, or to add limits, use Tools, Solver….

Does Goal Seek send my numbers anywhere?

No. Foxcolab Sheets calculates in your browser, on the copy of the spreadsheet your device decrypted. Goal Seek runs there too, so the numbers stay end-to-end encrypted.

Did this answer your question?

One click, no account needed.

Still need help?

Our support team can take it from here.

Jump to