Question about Excel Goal Seek in financial macro

pietermeulendijk

New Member
Joined
Jan 15, 2010
Messages
2
Hello Forum members,

I am new to his forum.

I have built a financial model detailing the costs for a certain project and the way in which the costs are financed. At a certain point I am running a macro that has the objective to minimize the costs that are not yet financed by taking out debt for these costs.

The costs that are not yet financed consist of two parts, so the goal seek function needs to minimize both parts. Let's call the two cells with the costs that are not yet financed A1 and A2.

Currently, I use this function:

wf.Range("Fin_shortage").GoalSeek Goal:=0, ChangingCell:=wm.Range("srDebt")

The cell called "Fin_shortage" is the problem: if I set it to be "A1+A2" the minimization does not work. Also if I set it to be "A1-A2" it does not work. Also "A1*A2" gives no correct result, as that minimizes the product of the cells, but not the individual cells, which is what I am looking for. I want both cells A1 and A2 to be minimized by changing cell "srDebt".

Who can help me achieving my goal? All help appreciated!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,601
Messages
6,120,465
Members
448,965
Latest member
grijken

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