ReferenceFunctionsFinancial Functions
NPV
NPV: Calculates net present value for equally spaced cash flows.
Summary
The first cash-flow argument is discounted one period from the present, matching spreadsheet
NPV behavior for periodic series.
Remarks
rateis the discount rate per period.- Cash-flow sign convention: investments/outflows are negative, returns/inflows are positive.
- Non-numeric values are ignored; numeric values in arrays/ranges are consumed left-to-right.
- Embedded error values inside provided cash-flow values are propagated as errors.
- Returns argument coercion errors for invalid
rateor direct scalar failures.
Examples
Example
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
null
Example
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
null
Related functions
FAQ
Is the first cash flow discounted at period 0 or period 1?
NPV discounts the first supplied cash flow one full period, matching spreadsheet NPV behavior.
Runtime metadata
Category
Financial
Signature
NPV(arg1: Number, arg2…: Any)Arity
min 2, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Any · Scalar
Caps
PURE
Source