This is probably a pretty simple answer, but I have been having some trouble with Access' built in Financial Function: MIRR
I have the following code:
Code:
Private Sub ROI_Button_Click()
Static CFA(6) As Double 'Define array
CFA(0) = -14875 'Initial Investment
CFA(1) = 4635 'Positive Cash flows for five years
CFA(2) = 6180
CFA(3) = 6180
CFA(4) = 6180
CFA(5) = 6180
Me.T6ROI = MIRR(CFA(), 0.07, 0.09) 'Calculated Modified Internal Rate of Return
End Sub
The result that I get is 16.89%
When I do the same thing in Excell:
=MIRR({-14875, 4635, 6180, 6180, 6180, 6180}, 0.07, 0.09)
I get 18.53%
I have also alternatively tried to write the equation out for the MIRR function
Code:
Private Sub ROI_Button_Click()
Dim I As Long
Dim F As Long
Dim R As Long
Dim Y1 As Long
Dim Y2 As Long
Dim Y3 As Long
Dim Y4 As Long
Dim Y5 As Long
F = 1.07 'Loan Rate
R = 1.09 'Reinvest Rate
I = -14875 'Initial Investment
Y1 = 4635 'Positive Cash flows for five years
Y2 = 6180
Y3 = 6180
Y4 = 6180
Y5 = 6180
Me.T6ROI = (((((Y1 / (R ^ 1)) + (Y2 / (R ^ 2)) + (Y3 / (R ^ 3)) + (Y4 / (R ^ 4)) + (Y5 / (R ^ 5))) * (R ^ 5)) _
/ (I / F * F)) ^ (1 / 5)) - 1
End Sub
I get 14.56%
What am I missing? What have I done wrong?
Thanks
bytreeide