A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hello Macrin -- Greeting -- If you can help in this regard it will be very helpful--kindly adivice on teh above case please..
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have one requirement.
See below
Requirement: I need to give value in D9 so that E10 (0.5) =E11.
I can do with "WHAT IF --> Goal Seek" .. for one time this is ok ..
But i do have 600 sheets like above...
I need to insert formula that must works automatically without "what if--> goal seek" formula.
That means it should automaticalle iterate D9 to satisfay E10 (0.5) =E11. when ever the tavle values changes in E19..E..616
Kindly advice..
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hello Macrin -- Greeting -- If you can help in this regard it will be very helpful--kindly adivice on teh above case please..
Looks like what you are trying to do is a numerical root-solving operation. D9 is the variable and E11 is the calculated result. You want Excel to automatically find the value of D9 for which E11 equals E10, where E10 is 0.5.
A normal Excel formula cannot do this if E11 already depends on D9. You cannot put a formula in D9 that simply says "change D9 until E11 = E10" because that creates a circular reference. Goal Seek works because it is an iterative calculation engine outside the normal worksheet formula calculation.
However, you can do this with a formula if you express the calculation currently performed in E11 as a function of a candidate value for D9. A formula can then perform its own iteration, for example with LET and a binary-search algorithm:
=LET(target,E10,low,0,high,1000,iterations,50,REDUCE(0,SEQUENCE(iterations),LAMBDA(x,_,LET(mid,(low+high)/2,result,[calculation using mid],IF(result>target,mid,mid)))))
The exact formula depends on how E11 is calculated from D9 and the values in E19:E616.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin