XNPV Function in Excel: NPV for Cash Flows on Specific Dates

⏱ 1 min readUpdated 28 September 2026

FinancialLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

XNPV discounts cash flows that happen on irregular dates — more accurate than NPV for real projects.

Syntax

=XNPV(rate, values, dates)
Argument What it means
rate Annual discount rate.
dates Matching dates; the first is the base date.

Examples

Example 1

=XNPV(10%, B2:B8, A2:A8)

Project value at 10% with payments on actual dates.

NPV · XIRR

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong