WorksheetFunction.Xnpv (Excel)
Returns the net present value for a schedule of cash flows that is not necessarily periodic.
To calculate the net present value for a series of cash flows that is periodic, use the Npv method.
Xnpv (Arg1, Arg2)
Dim dblXnpv As Double
dblXnpv = WorksheetFunction.Xnpv(Arg1:=, Arg2:=)
Arguments
Arg1, Arg2Arg1 - A 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
Arg2 - A 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