Set a cell say A1 =exp(A2+B2)
Set a ell say B1 = (A2^2)/B2 -B2^2
Set a cell say D1 = A1 - B1
You want to set this cell =0 in your goal seek function.
Say x = 1 is in cell A5 and the corresponding y is in Cell B5 and you want to calculate to x = 5
sub ()
Dim a as Integer
For a = 0 To 4
Range("A5").Offset(a, 0).Select
Selection.Copy
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("B2").Value = 1
Range("D1").Select
Range("D1").GoalSeek Goal:=0, ChangingCell:=Range("B2")
Range("B2").Select
Range("B2").Copy Range("B5").Offset(a, 0)
Next a
End Sub
So I use Cell A2 and B2 to do separate each scenario. There is a way to do it without this workaround but this is the same way as I have in my code. As for the first part of your request. Just add a command button to where ever you like on your page and then right click it and assign a macro (ie. what ever you name this one) and voila
Bookmarks