Share via


GoalSeek Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

                 

Calculates the values necessary to achieve a specific goal. If the goal is an amount returned by a formula, this calculates a value that, when supplied to your formula, causes the formula to return the number you want. Returns True if the goal seek is successful.

Syntax

expression**.GoalSeek(Goal**, ChangingCell)

expression   Required. An expression that returns a Range object. Must be a single cell.

Goal   Required Variant. The value you want returned in this cell.

ChangingCell   Required Range. Specifies which cell should be changed to achieve the target value.