Function · Financial

Excel XNPV function

The Excel XNPV function discounts cash flows on the dates you supply. The XIRR example's flows are worth about $763.95 at 8%.

Excel 2007 and later. Also in Excel for the web and Google Sheets.

Syntax =XNPV(rate, values, dates)

XNPV
=XNPV(0.08,B2:B5,A2:A5)

Arguments

NameRequiredWhat to pass
rateRequiredThe annual discount rate.
valuesRequiredCash flows. The first is usually today, or the investment date, and it is not discounted.
datesRequiredOne date per cash flow. A date earlier than the first date is #NUM!.

Examples

The uneven receipts discounted at 8%

=XNPV(0.08,B2:B5,A2:A5)

Result $763.95

=XNPV(D2,B2:B5,A2:A5)D3
Cash
ABCD
1DateCashRate
21/15/2026-100008%
36/1/20262500763.95
411/1/20264000
53/15/20275000
A picture of the sheet, not a live calculator. D1 is the discount rate. The first cash flow is on the first date and is not discounted further.

XNPV discounts each cash flow by the exact number of days from the first date. At 8%, the schedule from the XIRR page is worth about $763.95. The first amount, the $10,000 paid on January 15, 2026, sits on the start date, so it is included at face value. Later amounts are discounted on a 365-day year. That is different from NPV, which always steps one full period and does not want today’s cash inside the list.

The rate is annual. A date before the first date is #NUM!, and so is a values range that is longer than the dates. The rate that drives this present value to zero is the XIRR of the same two columns.