Hi,
I have a requirement to write a t-sql query to mimic the logic of excel goal seek function. In Excel for that particular cell we have a formula through which we are making that cell to 0. The formula is as below.
=NPV(D7/12,D10:D481)
D7:IRR(Internal Rate Return)
12:No Of months in a year
D10:D481:The values present in the cell.
Through my sql code i am able to get the NPV(Net Present Value). I need to find out the value of D7 which makes D8 to 0 through goal seek function.Meaning basing on the value of D7 the cell will be approximately equal to 0.
Any help is appreciated.