ReferenceFunctionsFinancial Functions
XNPV
XNPV: Calculates annualized net present value for irregularly dated cash flows.
Summary
Discounting uses an actual-day offset divided by 365 from the first provided date.
Remarks
rateis an annual discount rate.- Cash-flow sign convention: outflows are negative and inflows are positive.
valuesanddatesare flattened to numeric entries; non-numeric entries are ignored.- Scalar error inputs are propagated; callable inputs return
#CALC!. - Returns
#NUM!whenvaluesanddateslengths differ or no numeric pair exists.
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
How are dates interpreted in XNPV?
Each cash flow is discounted by (date_i - first_date) / 365, so dates must align one-to-one with values.
Runtime metadata
Category
Financial
Signature
XNPV(arg1: Number, arg2: Any, arg3: Any)Arity
min 3, max 3
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Any · Scalar
arg3Any · Scalar
Caps
PURE
Source