Skip to main content
← All functions

XNPV function

Returns the net present value for a schedule of cash flows that is not necessarily periodic

Syntax

XNPV(rate, values, dates)

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
rateYesThe discount rate to apply to the cash flows.10%
valuesYesA 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. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive and one negative value.A1:A4
datesYesA schedule of payment dates that corresponds to the cash flow payments. Dates may occur in any order.B1:B4

Try XNPV

Discount a dated receipt two years later

=XNPV(C2,A2:A3,B2:B3)

The second date is 730 days after the first. At 10% annually its receipt is discounted for two years, while the initial outflow is at time zero.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

XNPV · top-level call

=XNPV(C2,A2:A3,B2:B3)

1 / 3 · rate

The discount rate to apply to the cash flows.

XNPV reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Practice a complete task

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.