Goal Seek step by step in spreadsheets

  • The Goal Seek tool allows you to find the value of a single variable so that a formula achieves a specific result.
  • It is key to clearly identify the target cell, the desired value, and the cell that changes, which is the unknown.
  • It can be applied in real-world cases such as grades, loans, investments, or personal and business budgets.
  • For problems with multiple variables or constraints, it is best to combine Goal Seek with the Solver add-in.

Excel goal finder

When working with spreadsheets, it's very common to know the desired result but have no idea what number to enter in a cell to achieve it. Instead of manually trying values ​​like a guessing game, you can let Excel and other spreadsheet programs do the work for you with the Goal Seek tool.

This function is like telling the spreadsheet, " I want this final result ; find the value this cell needs to have to achieve it." It's a very convenient way to solve equations with a single unknown, applicable to real-world scenarios such as loans, exam grades, profits, budgets, or business analyses.

What exactly is Goal Seek in spreadsheets?

The Goal Seek tool is part of the "What if..." Analysis features included in Excel and other editors like ONLYOFFICE. Unlike regular formulas, which calculate a result from input data, Goal Seek works in reverse : you specify the desired result, and the spreadsheet calculates the value a cell must have for the formula to meet that condition.

In other words, it allows an existing formula to adopt a specific value by automatically adjusting a single variable. This avoids the typical trial-and-error method , where you change a number, look at the result, change it again, and so on until you get it right.

excel web

Key concepts: target cell and changing cell

To use Goal Seek without getting confused, it's important to understand two fundamental elements: the target cell and the cell that changes . A solid understanding of these two concepts will save you a lot of trouble.

The target cell is the one containing the formula whose result you want to set . It's not just any cell; it must always contain a formula: an average, a financial function, a SUMPRODUCT, a profit calculation, etc. It's where you want the final value you decide to appear, such as a minimum grade point average, a monthly payment, a desired profit, or a specific interest rate.

The cell that changes is the unknown , the cell whose value the tool will modify to achieve the result you requested. This cell must be part of the formula in the target cell; if the formula doesn't reference it, Goal Seek will have no way to influence the result.

Finally, you will need to specify the desired value , which is the specific number you want to achieve in the target cell: a final grade of 50, an average of 70, odds of -900, a profit of 50.000, etc. You decide this value, and it is the focus of the entire analysis.

How to use Goal Seek: step-by-step overview

Before going into specific examples, it is worth looking at the general flow , because it is repeated almost the same in any situation, both in Excel and in ONLYOFFICE and other compatible editors.

In general terms, the typical use of Goal Seek follows this sequence: first you set up the sheet and the formulas , then you open the tool, define the target cell, the value to be reached and the cell that will change, and let the program find the solution.

The standard route would be:

  1. Prepare the dataYou enter the cells with values ​​you already know (loan amount, number of months, existing notes, costs, prices, etc.), and if necessary, you can remove duplicates.
  2. Create the formula for the result: You write in the target cell the formula that calculates the result you want to control (average, PAY/PMT, profit, SUMPRODUCT, etc.).
  3. Open Target SearchFrom the Data tab, within the Hypothesis Analysis or Results Analysis group, you can access Goal Seek.
  4. Fill in the three parameters: You specify the target cell, the value to achieve, and the cell that changes.
  5. Run and acceptThe program calculates successive approximations until a solution is found, shows you a box with the status of the search, and you can accept so that the new values ​​remain in the sheet.

This pattern is repeated in all scenarios: the only things that change are the formulas involved and which cell you decide to use as the unknown.

Excel Goal Seek

Goal Finding with Grades: Knowing What Grade You Need to Get

Another very common use of Goal Seek is to calculate the grade you need on a pending exam to achieve a specific final average. This is a very instructive, simple, and perfect example for understanding how the tool works in reverse.

The idea is simple: you already have some grades, you're missing one last test, and you want to know what minimum result you need for your final average grade to reach a certain value, whether the average is simple or weighted.

Simple average of several grades

Imagine you have four tests in a subject. You've completed three, you have their grades, and only the final exam remains. You know you need a final grade of 50 to pass the course and you want Excel to tell you what score you need to get on that last exam.

First, create a table with the known grades and leave one cell empty for the missing grade. In another cell, calculate the final grade as a simple average, for example with =AVERAGE(grade_range) or =AVERAGE if you're using the English function. That average cell will be your target cell.

Next, open Goal Seek from Data > What-If Analysis > Goal Seek and configure the parameters. In Set cell , select the cell containing the average (for example, C6). Then, in To value , enter the target, which would be 50 in this case. In Changing cell , choose the cell containing the outstanding grade, for example, C5, which is the one Excel will adjust automatically.

After clicking OK, the tool calculates the necessary exam grade to achieve an average of exactly 50. Excel will display in the search status box whether a solution has been found and, if so, will write the minimum grade you need in the pending grade cell, such as 60%.

Weighted grades using SUMPRODUCT

If you want to take it a step further, you can apply Goal Seek to a weighted grading system , where each assessment has a different weight (for example, assignments, quizzes, final exam, etc.). In this case, the final grade is not a simple average, but a weighted average.

This is usually done using the SUMPRODUCT function , which multiplies each grade by its weight and sums the products. Dividing by the sum of the weights gives you the final weighted average grade. This is the formula you will place in the target cell.

The procedure would be as follows: in one column you list the different activities (test 1, test 2, assignment, exam, etc.), in another column the grades, and in another the percentages or weights. The formula for the final grade could be something like =SUMPRODUCT(grade_range;weight_range)/SUM(weight_range) . The cell containing SUMPRODUCT and SUM will be the one you use as the target.

When you open Goal Seek, in Set cell you choose the cell containing the weighted final grade; in With value you enter the minimum you want to achieve (for example, 50); and in Changing cell you specify the exam grade again , which is the only unknown value. After running the search, the program will tell you what grade the final exam must have, for example, 57,5% , so that the overall average reaches 50.

Using Goal Seek in ONLYOFFICE Docs 8.0

Excel isn't the only company to incorporate this tool; editors like ONLYOFFICE Docs have also added the Goal Seek function to their spreadsheets, with very similar functionality, ideal if you work in collaborative or cloud environments.

The workflow in ONLYOFFICE is virtually the same: first, you enter your data and the formula that links that data to the result you want to track, and you can use helpful features like autocomplete . For example, if you want to calculate the minimum passing grade, you can enter the grades in a range and use the function =AVERAGE(B2:B5) in a result cell, say B7. That cell, B7, will be the target cell.

Next, go to the Data tab and click the Goal Seek icon . A dialog box opens with three fields very similar to those in Excel. In Set cell , choose the cell containing the formula (B7); in Value , enter the desired average (for example, 70); and in When cell changes, select the cell containing the missing grade (for example, B5), which is the one the spreadsheet will update.

When you click OK, ONLYOFFICE calculates the value the unknown grade must have for the average to reach 70. The Goal Seek status window will display the result; if you accept it, the relevant cells will be updated. In the example shown, the system might return that you need an 85 on the last exam to achieve that minimum average.

This same mechanism applies to other cases: loan amortization, investment planning, fixed budgets where you want to adjust a specific category, or break-even analysis in sales. As long as you have a single unknown variable and a formula that relates it to your goal, Goal Seek is perfectly applicable.

When to use Goal Seek and when to switch to Solver

While Goal Seek is incredibly useful, it has a crucial limitation: it only allows you to adjust one variable cell to achieve the result. If your problem involves multiple unknowns or complex constraints, it will fall short, and you'll need to use more advanced tools like Solver.

Solver is an Excel add-in (and other suites) that extends "What if" analysis by allowing you to maximize or minimize a target cell, modify multiple cells at once, and add constraints (minimums, maximums, cell relationships, etc.). It is ideal for profit optimization, resource allocation, or linear programming.

For example, if you want to find out what grades you need on two different exams (English and Chemistry) to get an average of 84, Goal Seek won't work because you have two variables. Solver lets you set the average cell (with a value of 84) as the goal, change the cells for both subjects, and find a possible combination, such as getting 87 in each.

In a business scenario, you can use Solver to maximize profit across multiple service lines, where you must simultaneously meet minimum sales targets for one service, maximum sales targets for another, and a total sales limit. In these cases, you would set the total profit as the objective cell, choose the quantities sold as variables, and define the constraints, letting Solver find the optimal combination.

Goal Seek is perfect for single-variable problems (a single changing cell) and relatively simple formulas, while Solver takes over when there are multiple variables and simultaneous constraints.

Common problems: Why Goal Seek might not work well

Although the tool usually works very reliably, there are times when Goal Seek seems to "fail" or fail to find a solution. The problem is usually not with the program itself, but with the settings or the formula.

One of the first things to check is the workbook's iteration settings . Excel, for example, limits the maximum number of iterations and the maximum change allowed between approximations to prevent endless calculations. If the number of iterations is too low or the maximum change is too large, the tool may stop prematurely or fail to achieve the accuracy you expected.

In Excel, you can review these parameters under File > Options > Formulas . There, you can increase the maximum number of iterations to allow for more search attempts, or reduce the maximum change to gain precision. Adjusting these values ​​often improves results in more complex problems.

Another very common mistake is that the target cell formula doesn't include the cell you want to change. If the cell being changed isn't part of the formula, no matter how much the spreadsheet rotates it, it won't have any effect on the result. You should also make sure the formula is well-written and doesn't create circular references , as this can block the calculation or cause the goal seek to fail.

Mastering Goal Seek in Excel and other spreadsheets is a quick way to go from rough calculations to much more serious numerical analysis without getting bogged down in advanced math: simply understand the formula for the result, decide which variable you want to adjust, and use the tool to do the hard work for you, whether it's for your personal finances, your studies, or the daily management of your business.

basic Excel formulas
Related article:
Learn to master functions like LOOKUP and INDEX in Excel for powerful searches.

Add as preferred source in Google