• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Percentages

in cell A1 i have a figure 8, in cell A2 i have a figure 13, this gives a percentage of 62, in cell B2. can anyone help me with a formula that will display a single figure that can be added to both A1 & A2 so that a minimum of 80% is acheived? Cheers.
 
Hi ,


This can be worked out using Algebra.


If you want that by adding a value , say in A3 , to both A1 and A2 , to get 0.8 , then :


(A1 + A3 ) / ( A2 + A3 ) = 0.8


A1 + A3 = 0.8A2 + 0.8A3


A1 - 0.8A2 = -0.2A3


A3 = (A1 - 0.8A2) / -0.2


Multiplying by 5 , and reversing the signs , we get :


A3 = 4A2 - 5A1


Writing this as an Excel formula :


=4*A2-5*A1


should give you the value to be added to both A1 and A2 to give 0.8 ( 80 % )


Narayan
 
Hi,


If you want to use EXCEL for the same purpose.. :)


A1 = 8

A2 = 13

A3 = (A1/B1) (Format = %.. Which is 62%)

A4 = 5 (or anything...)

---

B1 = (A1 + A4)

B2 = (A2 + A4)

B3 = (A2 / B2) (Format = %)

---

Now click on Data >> What If Analysis >> Goal Seek

Set Cell = B3

To Value = 0.8

By Changing Cell = A4..(which is currently 5 or anything)

---

After Click on OK, EXCEL will determine for you the desired result for A4.. so that B3 will be 80%..


Regards,

Deb

____________

Hi Narayan,


Hope I got a BUG..

* I do the same using 'Goal Seek', It gives me wrong answer.. (11.9835...)

https://dl.dropbox.com/u/78831150/Excel/GoalSeek.JPG


* I do the same using 'Solver', it gives me wrong anwer.. (12.00007521)

https://dl.dropbox.com/u/78831150/Excel/Solver.jpg


* I hope my My Iterative Calculation was also correct..

https://dl.dropbox.com/u/78831150/Excel/My%20Iterative%20Calculation.jpg


Then why Excel fails to give the correct answer as YOU.. (simple and perfect 12)


Please help.. and also confirm if it is in your system also wrong answer..


Regards,

Deb
 
Hi Debraj ,


You come up with questions which can be answered only by Microsoft !


I never thought of using any of the techniques you have mentioned to solve a problem which could be solved using Algebra !


Off-hand , the only reason I can think of for the close but not exact outputs from these techniques is probably because of the tolerance you have specified ; if you make the tolerance very small , then given enough iterations , all of these techniques might give the same answer. Also , since these techniques use infinite series to reach a solution , using a finite number of iterations can result in an answer which is close but not exact.


Narayan
 
Actually, the questions would be answered by Frontline Systems (based in Incline Village, NV.) They've been the authors of the Solver algorithms used in Excel since forever. This isn't a plug, but I thought most of the Excel fanatics on this call would enjoy knowing this tidbit.
 
Hi, Debraj Roy!


I must say that I don't use too much What If Analysis or Solver except for having an idea towards which values involved cell should go to. As NARAYANK991 wrote, if it's mathematically solvable why using Excel features instead of Excel formulas?


BTW, are you surprised about Redmond guys developing strange things or at least not logical at a first glance? I'm not at all, in fact it's what I'd expect from them.


The Goal Seeker method has nearly nothing customizable and it's not affected by the Options, Formulas, Calculation Options, Enable Iterative Calculation, and changing Max Iterations No. or Max Change.


The Solver method lets you use three variants (GRG Nonlinear, Simplex LP and Evolutionary) even only the first works with this example when I'd expected that second one were more accurate. Here you have in Options more parameters (Constraints Precision, Omit Integer Constraints, an Integer Optimality which I supposed would do the job but didn't, and for GRG Convergency and others). Despite of this, playing with all parameters, setting Optimality to 0, Convergency to 1E-9, and all you can imagine, the same value 12,00...0751 displayed in A4).


Conclusion? It works up to a certain extent which we'd go on ignoring it as first Goal Seek is uncustomizable and second Solver is reluctant to get customized. For a general idea of WTF (what the function :p) should a cell value approach go ahead with these built-in features. For critical calculations, well you can always use any suitable numeric method as Newton-Raphson, Min Squares, Succesive Approximations, etc., so always insert a worksheet Work in those workbooks and use it whenever any strange calculated value is returned by Excel.


Hope it helps.


Regards!
 
Back
Top