Hi,
I updated a macro so that it uses the IRR within vba rather than the IRR worksheet function.
To test this compared the worksheet function vs. IRR function & notice that the vba function is erroring out & the worksheet function returns a real value.
Why is this?
Worksheets("calcs").Range("BY8:BY1200").Value = Application.Transpose(arr1)
Dim t1 As Double, t2 As Double, t3 As Double
If IsError(Application.IRR(arr1, 0.01)) Then
ERCreditedRate = 0.01
Else
t1 = (1 + Application.IRR(arr1, 0.01)) ^ 12 - 1
ERCreditedRate = (1 + Application.IRR(arr1, 0.01)) ^ 12 - 1
End If
excel 2016
I updated a macro so that it uses the IRR within vba rather than the IRR worksheet function.
To test this compared the worksheet function vs. IRR function & notice that the vba function is erroring out & the worksheet function returns a real value.
Why is this?
Worksheets("calcs").Range("BY8:BY1200").Value = Application.Transpose(arr1)
Dim t1 As Double, t2 As Double, t3 As Double
If IsError(Application.IRR(arr1, 0.01)) Then
ERCreditedRate = 0.01
Else
t1 = (1 + Application.IRR(arr1, 0.01)) ^ 12 - 1
ERCreditedRate = (1 + Application.IRR(arr1, 0.01)) ^ 12 - 1
End If
excel 2016