Excel Goal Seek

th284

New Member
Joined
Jul 25, 2011
Messages
4
Is there a way to stop goal seeking once the target value reaches certain threshold? The issue is I am running some complex goal seek spreadsheet and it takes a long time to goal seek the exact value. If I can find a way to define a range rather the exact value it should improve the efficiency. Thank you.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi th284
Welcome to the board

Use the solver instead. It lets you control the process by defining not only the constraints precision (what I understood you want) but also for ex., the maximum execution time or the maximum number of iterations.
 
Upvote 0
For example:
Threshold = 50
Target Value = 100
Range("E9").GoalSeek Goal:=TargetValue+Threshold, ChangingCell:=Range("D9")

I want goalseek stop when Range("E9") actually is between (Target Value +1*Threshold) and (Target Value +2*Threshold), meaning as long as Range("E9") is <200 and >150 I am OK.

Will this do the trick?
Do
Range("E9").GoalSeek Goal:=TargetValue+Threshold, ChangingCell:=Range("D9")
Until Range("E9").value >=Target Value +1*Threshold AND Range("E9").value <=Target Value +2*Threshold
??

Thank you.
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,188
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top