How to use Goal Seek in Excel to do What-If analysis (2024)

The tutorial explains how to use Goal Seek in Excel 365 - 2010 to get the formula result you want by changing an input value.

What-If Analysis is one of the most powerful Excel features and one of the least understood. In most general terms, What-If Analysis allows you to test out various scenarios and determine a range of possible outcomes. In other words, it enables you to see the impact of making a certain change without changing the real data. In this particular tutorial, we will focus on one of Excel's What-If Analysis tools - Goal Seek.

What is Goal Seek in Excel?

Goal Seek is Excel's built-in What-If Analysis tool that shows how one value in a formula impacts another. More precisely, it determines what value you should enter in an input cell to get the desired result in a formula cell.

The best thing about Excel Goal Seek is that it performs all calculations behind the scenes, and you are only asked to specify these three parameters:

  • Formula cell
  • Target/desired value
  • The cell to change in order to achieve the target

The Goal Seek tool is especially useful for doing sensitivity analysis in financial modeling and is widely used by management majors and business owner. But there are many other uses that may prove helpful to you.

For instance, Goal Seek can tell you how much sales you have to make in a certain period to reach $100,000 annual net profit (example 1). Or, what score you must achieve for your last exam to receive an overall passing score of 70% (example 2). Or, how many votes you need to get in order to win the election (example 3).

On the whole, whenever you want a formula to return a specific result but are not sure what input value within the formula to adjust to get that result, stop guessing and use the Excel Goal Seek function!

Note. Goal Seek can process only one input value at a time. If you are working on an advanced business model with multiple input values, use the Solver add-in to find the optimal solution.

How to use Goal Seek in Excel

The purpose of this section is to walk you through how to use the Goal Seek function. So, we'll be working with a very simple data set:How to use Goal Seek in Excel to do What-If analysis (1)

The above table indicates that if you sell 100 items at $5 each, minus the 10% commission, you will make $450. The question is: How many items do you have to sell to make $1,000?

Let's see how to find the answer with Goal Seek:

  1. Set up your data so that you have a formula cell and a changing cell dependent on the formula cell.
  2. Go to the Data tab > Forecast group, click the What if Analysis button, and select Goal Seek…How to use Goal Seek in Excel to do What-If analysis (2)
  3. In the Goal Seek dialog box, define the cells/values to test and click OK:
    • Set cell - the reference to the cell containing the formula (B5).
    • To value - the formula result you are trying to achieve (1000).
    • By changing cell - the reference for the input cell that you want to adjust (B3).
    How to use Goal Seek in Excel to do What-If analysis (3)
  4. The Goal Seek Status dialog box will appear and let you know if a solution has been found. If it succeeded, the value in the "changing cell" will be replaced with a new one. Click OK to keep the new value or Cancel to restore the original one.

    In this example, Goal Seek has found that 223 items (rounded up to the next integer) need to be sold to achieve a revenue of $1,000.How to use Goal Seek in Excel to do What-If analysis (4)

If you are not sure you will be able to sell that many items, then maybe you can reach the target revenue by changing the item price? To test this scenario, do Goal Seek analysis exactly as described above except that you specify a different Changing cell (B2):How to use Goal Seek in Excel to do What-If analysis (5)

As the result, you will find out that if you increase the unit price to $11, you can reach $1,000 revenue by selling only 100 items:How to use Goal Seek in Excel to do What-If analysis (6)

Tips and notes:

  • Excel Goal Seek does not change the formula, it only changes the input value that you supply to the By changing cell box.
  • If Goal Seek is not able to find the solution, it displays the closest value it has come up with.
  • You can restore the original input value by clicking the Undo button or pressing the Undo shortcut (Ctrl + Z).

Examples of using Goal Seek in Excel

Below you will find a few more examples of using the Goal Seek function in Excel. The complexity of your business model does not really matter as long as your formula in the Set cell depends on the value in the Changing cell, directly or through intermediate formulas in other cells.

Example 1: Reach the profit goal

Problem: It is a typical business situation - you have the sales figures for the first 3 quarters and you want to know how much sales you have to make in the last quarter to achieve the target net profit for the year, say, $100,000.How to use Goal Seek in Excel to do What-If analysis (7)

Solution: With the source data organized like shown in the screenshot above, set up the following parameters for the Goal Seek function:

  • Set cell - the formula that calculates the total net profit (D6).
  • To value - the formula result you are looking for ($100,000).
  • By changing cell - the cell to contain the gross revenue for quarter 4 (B5).
How to use Goal Seek in Excel to do What-If analysis (8)

Result: The Goal Seek analysis shows that in order to obtain $100,000 annual net profit, your fourth-quarter revenue must be $185,714.How to use Goal Seek in Excel to do What-If analysis (9)

Example 2: Determine the exam passing score

Problem: At the end of the course, a student takes 3 exams. The passing score is 70%. All the exams have the same weight, so the overall score is calculated by averaging the 3 scores. The student has already taken 2 out of 3 exams. The question is: What score does the student need to get for the third exam to pass the entire course?How to use Goal Seek in Excel to do What-If analysis (10)

Solution: Let's do Goal Seek to determine the minimum score on exam 3:

  • Set cell - the formula that averages the scores of the 3 exams (B5).
  • To value - the passing score (70%).
  • By changing cell - the 3rd exam score (B4).
How to use Goal Seek in Excel to do What-If analysis (11)

Result: In order get the desired overall score, the student must achieve a minimum of 67% on the last exam:How to use Goal Seek in Excel to do What-If analysis (12)

Example 3: What-If analysis of the election

Problem: You are running for some elected position where a two-thirds majority (66.67% of votes) is required to win the election. Assuming there are 200 total voting members, how many votes do you have to secure?

Currently, you have 98 votes, which is quite good but not sufficient because it only makes 49% of the total voters:How to use Goal Seek in Excel to do What-If analysis (13)

Solution: Use Goal Seek to find out the minimum number of "Yes" votes you need to get:

  • Set cell - the formula that calculates the percentage of the current "Yes" votes (C2).
  • To value - the required percentage of "Yes" votes (66.67%).
  • By changing cell - the number of "Yes" votes (B2).
How to use Goal Seek in Excel to do What-If analysis (14)

Result: What-If analysis with Goal Seek shows that to achieve the two-thirds mark or 66.67%, you need 133 "Yes" votes:How to use Goal Seek in Excel to do What-If analysis (15)

Excel Goal Seek not working

Sometimes Goal Seek is not able to find a solution simply because it does not exist. In such situations, Excel will get the closest value and inform you that Goal Seeking may not have found a solution:How to use Goal Seek in Excel to do What-If analysis (16)

If you are certain that a solution to the formula you are trying to resolve does exist, check out the following troubleshooting tips.

1. Double check Goal Seek parameters

First off, make sure the Set cell refers to the cell containing a formula, and then, check if the formula cell depends, directly or indirectly, on the changing cell.

2. Adjust iteration settings

In your Excel, click File > Options > Formulas and change these options:

  • Maximum Iterations - increase this number if you want Excel to test more possible solutions.
  • Maximum Change - decrease this number if your formula requires more accuracy. For example, if you are testing a formula with an input cell equal to 0 but Goal Seek stops at 0.001, setting Maximum Change to 0.0001 should fix the issue.

The below screenshot shows the default iteration settings:How to use Goal Seek in Excel to do What-If analysis (17)

3. No circular references

For Goal Seek (or any Excel formula) to work properly, the involved formulas should not be co-dependent on each other, i.e. there should be no circular references.

That's how you perform What-If analysis in Excel with the Goal Seek tool. I thank you for reading and hope to see you on our blog next week!

You may also be interested in

  • How to use Solver in Excel with examples
  • How to use Copilot in Excel
  • How to use linear regression analysis in Excel
  • How to compare cells in Excel
  • Excel TREND function and other ways to do trend analysis
  • Excel FORECAST functions with formula examples
How to use Goal Seek in Excel to do What-If analysis (2024)

FAQs

How to use what if analysis Goal Seek in Excel? ›

On the Data tab, in the Data Tools group, click What-If Analysis, and then click Goal Seek. In the Set cell box, enter the reference for the cell that contains the formula that you want to resolve. In the example, this reference is cell B4. In the To value box, type the formula result that you want.

How to perform a what if analysis in Excel? ›

Go to the Data option from the toolbar and select the Excel What-if Analysis option from the Forecast Ribbon, as shown below. A dialog box will appear on the screen with empty scenarios. To add a scenario, select add option as shown below. Then, a new dialog box will appear on the screen with cell addresses.

What is goal seeking and what if analysis? ›

Goal Seek analysis

The Goal Seek feature lets you identify a specific goal (say, a certain revenue number or profit margin). You can adjust a variable to see if the goal in question is achievable. This is how to create a Goal Seek what-if analysis in Excel: From the Data Tab, select What-If Analysis, then Goal Seek.

What is the difference between what if analysis and Goal Seek? ›

Unlike functions and formulas that take given values and return a result, what-if scenarios allow you to explore the results of multiple variables and Goal Seek lets you specify the result and then determines the values needed to generate it.

How do I make Excel Goal Seek more accurate? ›

The default maximum change is 0.001. To force Excel to find a more precise solution, adjust the Maximum Change to a very small number, like 0.000001. To allow a more flexible result, make the Maximum Change a larger number, perhaps closer to the number 1.

What are the three types of what-if analysis in Excel? ›

What-If Analysis is the process of changing the values in cells to see how those changes will affect the outcome of formulas on the worksheet. Three kinds of What-If Analysis tools come with Excel: Scenarios, Goal Seek, and Data Tables.

How do you write a what-if statement for Excel? ›

Syntax. Use the IF function, one of the logical functions, to return one value if a condition is true and another value if it's false. For example: =IF(A2>B2,"Over Budget","OK")

What is an example of a Goal Seek? ›

For example, if the formula for revenue is equal to the number of units sold multiplied by the selling price, Goal Seek can determine how many units have to be sold to reach $1 million of revenue, if the selling price is known. The function is extremely useful for performing sensitivity analysis in financial modeling.

What is the Goal Seek scenario in Excel? ›

Goal Seek is Excel's built-in What-If Analysis tool that shows how one value in a formula impacts another. More precisely, it determines what value you should enter in an input cell to get the desired result in a formula cell.

What is Goal Seek and Solver in Excel? ›

Solver vs Goal Seek

The main difference is: Goal Seek only allows you to change one variable, while Solver allows you to change many variables at once. Solver allows you to find a Max or Min solution (optimization) while Goal Seek forces you to choose a specific outcome (not necessarily the optimal solution).

How to use Excel what if analysis? ›

Step 1 - Click 'What If Analysis' from the Data tab and select Scenario Manager. Step 2 - Click 'Add' from the Scenario Manager pop-up window. Step 3 - Name this scenario “Original” and enter the cell references of all cells with constant values that you may consider changing in other scenarios (maximum 32 cells).

Why do you conduct a what if analysis? ›

Such questions can be critical in reducing or eliminating risks to people working in a laboratory environment. A What-if Analysis consists of structured brainstorming to determine what can go wrong in a given scenario; then judge the likelihood and consequences that things will go wrong.

How to build scenarios in Excel? ›

How to create a scenario in Excel
  1. Select your scenario data range. ...
  2. Open the Excel scenario manager. ...
  3. Name your new scenario. ...
  4. Implement your new scenario. ...
  5. Confirm your cell values. ...
  6. Add more scenarios. ...
  7. View your scenarios. ...
  8. Access scenario summary reports.
Feb 12, 2024

Does Excel support sensitivity goal seeking and what-if analysis? ›

The Goal Seek in Excel is a built-in What-if-Analysis tool that helps us to know how one value in a formula impacts another. It also determines what should be given as input to attain the desired output. The Goal Seek tool is especially useful for doing sensitivity analysis.

How to use if function in Excel? ›

Use the IF function, one of the logical functions, to return one value if a condition is true and another value if it's false. For example: =IF(A2>B2,"Over Budget","OK") =IF(A2=B2,B4-A4,"")

How to do a break even analysis in Excel using Goal Seek? ›

select "Goal Seek" from the Data > What-If Analysis drop-down menu in your Excel sheet. go to the "Goal Seek" dialogue box and assign the "Set Cell" as profit cell. specify the "To" value as 0. specify the "By" changing cell as the Unit Price cell.

How to use Goal Seek in Excel shortcut key? ›

Open Goal Seek by accessing the Data section of the ribbon, then select What-If Analysis and then click Goal Seek. The keyboard shortcut on Windows is Alt, A, W, G. When this is completed, the Goal Seek Excel dialogue box will appear.

Top Articles
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 5501

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.