Goal Seek

L

lawson

Hello,

i wish to create a function that runs GoalSeek.

if, for example, A1 is where i sould type the function, then B1 would be the
value to be set, and C1 would be the cell to change till it equals B1, by
changing the value in A1.

A1 = GS(Target Value, Cell to be set to Value)
= GS('B1','C1') '(ie, can be typed in any cell, referencing any cells)

which would produce a value that looks like a typical Goalseek value,
2.639568392784

any help would be greatly appreciated

G
 
L

lawson

How is this function used?

if i have a formula in c5, that reads '=b9^1.7', and i want to set that cell
equal to 44 by changing cell b9, how do i use thie 'backward' function to do
that?

thanks
 
L

lawson

thanks, but the formula in my last question was jsut an example. the real
formula i keep having to goalseek is:

=MAX(8*$C29,6,IF(AND($C$16=0,$C$9>0),1/50,IF($C$15=1,IF($B29<=6,1/25,1/20),IF($B29<=6,3/50,3/40)))*$C$5*$C$4*$C29*$C$6/SQRT(Q$21)*IF($C$9>0,IF(AND($B29<=11,$C$10>0),$D$10,1)*IF(AND($B29<=11,$C$11>0),$D$11,1)*IF(AND($B29<=11,$C$12>0),$D$12,1)*IF($C$13>0,$D$13,1),1))*IF($C$16=1,1.3,1)
 
J

Jon Peltier

You can't run Goal Seek from a worksheet formula. You could write a macro to
automate it, or even record a macro while you do the particular analysis,
and rerun it as needed.

- Jon
 
Top