ExcelFlux

XNPV function

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

Financial

Where can you use it?

Budgeting, treasury and finance teams. When reviewing a scenario with cash flows, payment periods and rate assumptions, compare the input and output units in the example.

Scenario in the workbook

Discount dated cash flows to the first date. The opening cash flow is undiscounted.

A worked example from the workbook

RowABC
6InputCash flowDate serial
70-10046023
80.1046388
90.214446753
Record 1
=XNPV(A7,$B$7:$B$9,$C$7:$C$9)

Expected result44

See the inputs and instructions for all 3 examples

Syntax

XNPV(rate, values, dates)

Copyable formulas

English Excel · en-US
=XNPV(A7,$B$7:$B$9,$C$7:$C$9)
Turkish Excel · tr-TR
=ANBD(A7;$B$7:$B$9;$C$7:$C$9)

Worked examples

Discount dated cash flows to the first date. The opening cash flow is undiscounted.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B C
6 Input Cash flow Date serial
7 0 -100 46023
8 0.1 0 46388
9 0.2 144 46753
Case Formula Expected result
Record 1 =XNPV(A7,$B$7:$B$9,$C$7:$C$9) 44
Record 2 =XNPV(A8,$B$7:$B$9,$C$7:$C$9) 19.00826446
Record 3 =XNPV(A9,$B$7:$B$9,$C$7:$C$9) 0
Microsoft Excel reference