Excel includes many powerful tools to perform complex mathematical calculations, including what-if analysis . This feature can help you experiment and answer questions with your data, even when the data is incomplete. In this lesson, you will learn how to use a what-if analysis tool called Goal Seek .
Optional: Download our practice workbook .
Whenever you create a formula or function in Excel, you put various parts together to calculate a result . Goal Seek works in the opposite way: It lets you start with the desired result , and it calculates the input value that will give you that result. We'll use a few examples to show how to use Goal Seek.
Let's say you're enrolled in a class. You currently have a grade of 65, and you need at least a 70 to pass the class. Luckily, you have one final assignment that might be able to raise your average. You can use Goal Seek to find out what grade you need on the final assignment to pass the class.
In the image below, you can see that the grades on the first four assignments are 58 , 70 , 72 , and 60 . Even though we don't know what the fifth grade will be, we can write a formula—or function—that calculates the final grade. In this case, each assignment is weighted equally, so all we have to do is average all five grades by typing =AVERAGE(B2:B6) . Once we use Goal Seek, cell B6 will show us the minimum grade we'll need to make on that assignment.
Using a function to calculate the final grade for the class
Selecting cell B7
Selecting Goal Seek from the drop-down menu
Entering the desired values into the dialog box and clicking OK
Clicking OK
The completed Goal Seek and calculated value
Let's say you're planning an event and want to invite as many people as you can without exceeding a budget of $500. We can use Goal Seek to figure out how many people to invite. In our example below, cell B4 contains the formula =B1+B2*B3 to calculate the total cost of a room reservation, plus the cost per person.
Selecting cell B4
Selecting Goal Seek from the drop-down menu
Entering the desired values into the dialog box and clicking OK
Clicking OK
The completed Goal Seek and the calculated value
As you can see in the example above, some situations will require the answer to be a whole number. If Goal Seek gives you a decimal, you'll need to round up or down , depending on the situation.
For more advanced projects, you may want to consider the other types of what-if analysis: scenarios and data tables . Instead of starting from the desired result and working backward, like Goal Seek, these options allow you to test multiple values and see how the results change.
Using the Scenario Manager to compare different options
For more information on scenarios, check out this article from Microsoft.
Data tables
For more information on data tables, check out this article from Microsoft.