This documentation is archived and is not being maintained.

WorksheetFunction.Xnpv Method

Office 2007
Returns the net present value for a schedule of cash flows that is not necessarily periodic. Read/write Double.


expression.Xnpv(Arg1, Arg2)

expression   A variable that represents a WorksheetFunction object.


NameRequired/OptionalData TypeDescription
Arg1RequiredVariantA series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment.
Arg2RequiredVariantA schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.

Return Value


To calculate the net present value for a series of cash flows that is periodic, use the NPV method.


The following example displays the net present value for an investment with the above cost and returns. The cash flows are discounted at 9 percent. (2086.6476 or 2086.65)

Visual Basic for Applications