FormulaCraft

XNPV

XNPV is the date-aware version of NPV: it discounts each cash flow to a present value using the exact number of days between the first date and each cash flow date, rather than assuming equal periods. Use it for real-world investment analysis where cash flows do not arrive at perfectly regular intervals.

Excel
=XNPV(0.1,B2:B5,A2:A5)
Google Sheets
=XNPV(0.1,B2:B5,A2:A5)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1List cash flow dates in column A (as proper date values) and corresponding amounts in column B.
  2. 2The first date is treated as the valuation date; the first cash flow can be the initial investment (negative).
  3. 3Type =XNPV(rate, values, dates) — e.g. =XNPV(0.1,B2:B5,A2:A5).

Need a version for your data?

Try: “Calculate NPV for a project where cash flows arrive on irregular dates throughout the year

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: