WorksheetFunction.MIrr Method

Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both the cost of the investment and the interest received on reinvestment of cash.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function MIrr ( _
    Arg1 As Object, _
    Arg2 As Double, _
    Arg3 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim Arg2 As Double
Dim Arg3 As Double
Dim returnValue As Double

returnValue = instance.MIrr(Arg1, Arg2, _
    Arg3)
double MIrr(
    Object Arg1,
    double Arg2,
    double Arg3
)

Parameters

  • Arg1
    Type: System.Object

    Values - an array or a reference to cells that contain numbers. These numbers represent a series of payments (negative values) and income (positive values) occurring at regular periods.

  • Arg2
    Type: System.Double

    Finance_rate - the interest rate you pay on the money used in the cash flows.

  • Arg3
    Type: System.Double

    Reinvest_rate - the interest rate you receive on the cash flows as you reinvest them.

Return Value

Type: System.Double

Remarks

Values must contain at least one positive value and one negative value to calculate the modified internal rate of return. Otherwise, MIrr returns the #DIV/0! error value.

If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.

MIrr uses the order of values to interpret the order of cash flows. Be sure to enter your payment and income values in the sequence you want and with the correct signs (positive values for cash received, negative values for cash paid).

If n is the number of cash flows in values, frate is the finance_rate, and rrate is the reinvest_rate, then the formula for MIrr is:

Figure 1: Formula for MIrr method

Formula for MIrr method

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace