Solver vs. Goal Seek

MS_Xsmell

Board Regular
Joined
Jan 27, 2007
Messages
76
Office Version
  1. 365
Platform
  1. Windows
I am trying to use the Goal Seek function in a real estate cash flow model to solve the initial acquisition price to an amount required to achieve a target internal rate of return (IRR). The model I am using requires iterative calculations.

Goal seek will not work. It searches for the answer, varying from large negative to large positive numbers and eventually fails. I tried playing with the # of iterations and max change a bit, but couldn't seem to get it to work.

Solver however will find the correct answer without failing.

What's the difference between the two functions? Is there any way to get Goalseek to act like Solver so I can throw it into VBA or am I stuck with trying to figure out Solver?

Since I am only using variable, is it a difference in the default # iterations or Maximum Change?

Thanks.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Solver is a much more sophisticated product than Goal Seek.

You can always program Solver with VBA. Use the macro recorder and also see Excel help for the various Solver functions.
 
Upvote 0
Thanks... I've been poking around with it and this seems to be working:

Sub Solve_Acq()
'
SolverOk SetCell:=Range("B109"), _
MaxMinVal:=3, _
ValueOf:=Range("B108").Value, _
ByChange:=Range("B111")

SolverSolve UserFinish:=True

End Sub

B109 = IRR Calculation
B108 = Target IRR
B111 = Initial Acquisition price

I need to test it for bugs, but so far, so good.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,877
Members
449,130
Latest member
lolasmith

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