RangeXNPV() returns the net present value for a schedule of cash flows that is not necessarily periodic. The result has a default number format of money. To calculate the net present value for a series of periodic cash flows, use the RangeNPV function.
RangeXNPV(discount_rate, values, dates[, Expression])
Return data type: numeric
||The interest rate per period.|
||A cash flow or a series of cash flows that corresponds to a schedule of payments in dates. Each value may be a single value or a range of values as returned by an inter-record function with a third optional parameter. The series of values must contain at least one positive and one negative value.|
||A payment date or a schedule of payment dates that corresponds to the cash flow payments.|
All payments are discounted based on a 365-day year.
Add the example script to your app and run it. Then add, at least, the fields listed in the results column to a sheet in your app to see the result.
recno() as RangeID,
RangeXNPV(Field1,Field2,Field3) as RangeNPV;
LOAD * INLINE [
] (delimiter is '|');