WorksheetFunction.NPer (Excel)

Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate.

The following table describes the values that can be used for Arg5.

NPer (Arg1, Arg2, ..., Arg5)


Dim dblArg1 As Double: dblArg1 = 
Dim dblArg2 As Double: dblArg2 = 
Dim dblArg3 As Double: dblArg3 = 
Dim dblNPer As Double
dblNPer = WorksheetFunction.NPer(Arg1:=dblArg1, Arg2:=dblArg2, Arg3:=dblArg3)

Arguments

Arg1, Arg2, ..., Arg5

Arg1 (Double) - Rate - the interest rate per period.

Arg2 (Double) - Pmt - the payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes.

Arg3 (Double) - Pv - the present value, or the lump-sum amount that a series of future payments is worth right now.

Arg4 - Fv - the future value, or a cash balance that you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0)

Arg5 - Type - the number 0 or 1 and indicates when payments are due