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

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

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

FinancialLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. XNPV in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions
  9. Continue learning

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

Advertisement

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.

XNPV in practice

Where you will use it

  • NPV with real dates
  • Project cash flows on irregular dates
  • Deal valuation

Worked example

RateFormulaResult
0.08=TEXT(XNPV(A2,$H$1:$K$1,$H$2:$K$2),"#,##0")10,445
0.12=TEXT(XNPV(A3,$H$1:$K$1,$H$2:$K$2),"#,##0")6,234
0.15=TEXT(XNPV(A4,$H$1:$K$1,$H$2:$K$2),"#,##0")3,288

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
RateAnnual rate, not monthly
DatesMust be real dates

NPV Β· XIRR

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Financial: EMI, SIP, NPV, IRR, depreciation23 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

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

Free Β· AI can be wrong