Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL: Method Used by Goal Seek to Find a Solution


View products that this article applies to.

Summary

In Microsoft Excel, you can use the Goal Seek command (on the Tools menu) when you know the result you want to return a formula, but you do not know the input values the formula needs to reach that result. When you use goal seeking, Microsoft Excel varies the value in a specified cell until the formula that is dependent on that cell returns a specified result. This article describes the method used by the Goal Seek command to find a result.

↑ Back to the top


More information

In the Goal Seek dialog box, you specify the cell containing the formula (Set Cell), the result you want the formula to return (To Value) and one of the cells that the formula is dependent on (By Changing Cell). Both of the cell specifications must be a single cell reference or name. The To Value must be a number.

The Goal Seek command uses a simple linear search beginning with guesses on the positive or negative side of the value in the source cell (By Changing Cell). Excel uses the initial guesses and recalculates the formula. Whichever guess brings the formula result closer to the targeted result (To Value) is the direction (positive or negative) in which Goal Seek heads. If neither direction appears to approach the target value, Goal Seek makes additional guesses that are further away from the source cell. After the direction is determined, Goal Seek uses an iterative process in which the source cell is incremented or decremented at varying rates until the target value is reached.

The Goal Seek command uses a simple algorithm and, as a result, may have problems converging on a solution if the function is not linear. Because the iteration process begins with guesses around the source cell, if Goal Seek is having problems converging on a solution, changing the value in the source cell may help. Alternatively, you can use Microsoft Excel Solver.

↑ Back to the top


Keywords: kbhowto, KB100782

↑ Back to the top

Article Info
Article ID : 100782
Revision : 5
Created on : 1/18/2007
Published on : 1/18/2007
Exists online : False
Views : 597