Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorksheetFunction.Xnpv Method

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

Syntax

expression.Xnpv(Arg1, Arg2)

expression   A variable that represents a WorksheetFunction object.

Parameters

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
Double

Remarks

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

Example

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
=XNPV(.09,A2:A6,B2:B6)



Community Additions

Show:
© 2015 Microsoft