Financial function

XNPV function

Returns the net present value of cash flows that occur on specific, not necessarily regular, dates.

Available in Excel 2007 and later (earlier versions needed the Analysis ToolPak add-in), Excel for the web

Excel 2007 and laterWorks in Google Sheets

Syntax

XNPV(rate, values, dates)
ArgumentWhat it means
rateRequiredAnnual discount rate.
valuesRequiredCash flows, in the same order as dates. The first value is not discounted.
datesRequiredThe date of each cash flow. The first date is the valuation date (day 0).

Returns: The net present value as of the first date.

How XNPV works

XNPV is the dated version of NPV. Each cash flow is discounted for the exact number of days between its date and the first date, using (1+rate)^(days/365). That makes it the right tool for real-world projects where payments come on contract milestones, not neat year ends.

Unlike NPV, XNPV includes the first value undiscounted, so the initial investment goes inside the function. The rate is always annual. The pair XNPV/XIRR belong together: XNPV evaluated at the XIRR rate returns zero.

Examples

1Project with milestone payments

D2fx=XNPV(9%,B2:B6,A2:A6)
ABCD
1DateCash flow
22026-01-15-250002,122.39
32026-07-016000
42027-02-019000
52027-09-158000
62028-03-317500

Result: 2,122.39

Each inflow is discounted at 9% a year for its exact time after 15 Jan 2026. The net value is +2,122.39, so the project earns more than the 9% required return (Number format, 2 decimals).

2Value today of a payment plan

D2fx=XNPV(6%,B2:B5,A2:A5)
ABCD
1DateReceipt
22026-12-02046,925.22
32027-03-3112000
42027-09-3012000
52028-06-3026000

Result: 46,925.22

A customer will pay 50,000 in three instalments. Starting the timeline today with a 0 flow, the instalments are worth 46,925.22 today at 6% (Number format, 2 decimals).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!A date is earlier than the first date, or values and dates differ in size.Put the earliest date first and make the ranges match.
#VALUE!A date or value is not numeric.Check for text dates.

Tips

  • To value from today, make the first row today's date with a 0 cash flow.
  • XNPV uses a 365-day year; leap days slightly shorten the discount period.
  • Unlike NPV, do not add the first cash flow separately — it is already included.

Google Sheets

XNPV also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

XNPV in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishNETTO.NUTIDSVÆRDI
DutchNHW2
FinnishNNA.JAKSOTON
FrenchVAN.PAIEMENTS
GermanXKAPITALWERT
HungarianXNJÉ
ItalianVAN.X
Norwegian (Bokmål)XNNV
Portuguese (Brazil)XVPL
Portuguese (Portugal)XVAL
RussianЧИСТНЗ
SpanishVNA.NO.PER
SwedishXNUVÄRDE
TurkishANBD