Dear users,
I'm trying to build a custom function "My_IRR()" that calculates IRR of set of dates and amounts that belong to a table. Dates are located in the field "Dates" and the amounts are located in the field "Amounts" - Both from the table called "tblFCF".
It also takes the IRR value from a list that belongs to another table called "tblIRR". The field is called "dblIRR".
The idea of this is to emulate XIRR function of Excel.
I'm trying to build a custom function "My_IRR()" that calculates IRR of set of dates and amounts that belong to a table. Dates are located in the field "Dates" and the amounts are located in the field "Amounts" - Both from the table called "tblFCF".
It also takes the IRR value from a list that belongs to another table called "tblIRR". The field is called "dblIRR".
The idea of this is to emulate XIRR function of Excel.
Code:
Function My_IRR(Dates() As Date, Amounts() As Double) AS Double For ... Do End Function
Comment