Hi all,
I am trying to make an iterations within an iterations, create a command button on a userform to activate/call it, and display on said userform. The steps I am thinking of are:
1. Make initial guess of Value 1 and (FG0). Guess the value of FG0, then the result would be bgi1.
2. With bgi1, I calculated the value of bgi2. The difference between bgi1 and bgi2 shall be 5%.
3. If not, I have to guess the new bgi1. The second value of bgi1 is independent of Fg0.
4. Once bgi1 and bgi2 difference is around 5%, I proceed with the rest of the calculation and get FG1. Difference between FG0 and FG1 shall be 5%.
5. If the difference is bigger than 5%, I have to guess another new FG0, and repeat Step 1 - 4
I was thinking of using Solver, but sometimes I do not get the consistent working answer. Sometimes I get the values, but if the initial guess of FG0 is 0 or TOO BIG, I just get DIV/0! error.
Another problem being, the Solver Tab and the Display tab is different. Means when I open the userform, the that I want to be visible is not the one with all the equations. Therefore I cannot get my Solver function to work. I need to have its tabs active. Is there a workaround to this?
Please find my sample file attached. I have assigned a Solver function as well if you want to have a look at it.
Thank you.
Cross Post from here: http://www.ozgrid.com/forum/forumdisplay.php?f=158
Bookmarks