Using What if Analysis - Goal Seek on a calculation performed by a macro

spurs

Active Member
Joined
Oct 18, 2006
Messages
479
Office Version
  1. 2016
  2. 2013
  3. 2010
  4. 2007
  5. 2003 or older
Platform
  1. Windows
I have never tried this before but ran into a roadblock.

I have a macro that runs every time my worksheet is updated. The macro makes about 2 dozen calculations which are output to cells in a worksheet named "Holder"

One cell of interest is calculated by this macro and is output to cell "B4" in worksheet "Holder".

In the worksheet "Main" cell "C23" is set to =Holder!B4


Also in worksheet "Main" is an input value in cell "C20" This value is read into the macro as the basis of the 2 dozen calculations that are done.


Sometime I want to do a What-if-analysis - goal seek to set the value in "Main" C23 to some predetermined value by changing input cell C20 in main.


In doing so, goal seek gets lost and does not find a solution.


In the past I have done a similar thing using a function in C23 and using goal seek works fine. The problem is that I really need to do the 12 different calculations as opposed to a single calculation.

Is the method the problem of why a solution wont converge? Is there a solution that will allow me to continue to use the macro with the 2 dozen calculations?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top