[]
Calculates the values necessary to achieve a specific goal.
bool GoalSeek(double goal, IRange changingCell, bool changeIfFound = false)
Function GoalSeek(goal As Double, changingCell As IRange, Optional changeIfFound As Boolean = False) As Boolean
Type | Name | Description |
---|---|---|
double | goal | The value you want returned in this cell. |
IRange | changingCell | Specifies which cell should be changed to achieve the target value. |
bool | changeIfFound | if set to |
Type | Description |
---|---|
bool |
|
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.
Calculates the values necessary to achieve a specific goal.
bool GoalSeek(double goal, string changingCell, bool changeIfFound = false)
Function GoalSeek(goal As Double, changingCell As String, Optional changeIfFound As Boolean = False) As Boolean
Type | Name | Description |
---|---|---|
double | goal | The value you want returned in this cell. |
string | changingCell | Specifies which cell should be changed to achieve the target value. |
bool | changeIfFound | if set to |
Type | Description |
---|---|
bool |
|
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.
Calculates the values necessary to achieve a specific goal.
bool GoalSeek(double goal, CellReference changingCell, bool changeIfFound = false)
Function GoalSeek(goal As Double, changingCell As CellReference, Optional changeIfFound As Boolean = False) As Boolean
Type | Name | Description |
---|---|---|
double | goal | The value you want returned in this cell. |
CellReference | changingCell | Specifies which cell should be changed to achieve the target value. |
bool | changeIfFound | if set to |
Type | Description |
---|---|
bool |
|
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.