XNPV Function
XNPV calculates present value from cash flows that occur on specific dates. It discounts each amount by its actual day distance from the first supplied date.
| Excel XNPV Function | |||||||||||
| XNPV discounts irregularly dated cash flows to the date of the first cash flow. | |||||||||||
| Source data, editable | Examples | ||||||||||
| Date | Cash flow | Delayed date | Rate / input | Example | Formula syntax | Result | |||||
| Jan 1, 2024 | $-1,000 | Jan 1, 2024 | 10.0% | Irregular schedule | =XNPV(D12,B12:B16,A12:A16) | $291.59 | |||||
| May 15, 2024 | $300 | May 15, 2024 | 12.0% | Comparison rate | =XNPV(D13,B12:B16,A12:A16) | $264.06 | |||||
| Dec 31, 2024 | $400 | Dec 31, 2024 | Periodic NPV | =B12+NPV(D12,B13:B16) | $149.72 | ||||||
| Jul 1, 2025 | $500 | Jul 1, 2025 | Last receipt delayed | =XNPV(D12,B12:B16,C12:C16) | $282.13 | ||||||
| Feb 1, 2026 | $250 | Aug 1, 2026 | |||||||||
| Reliability checks | |||||||||||
| A higher discount rate lowers the dated present value | OK | ||||||||||
| Delaying the final positive receipt lowers XNPV | OK | ||||||||||
Overview
XNPV calculates net present value when cash flows occur on actual, potentially irregular dates.
Quick reference
Syntax: =XNPV(rate, values, dates)
Returns: The net present value of dated cash flows as of the first date. (currency)
Arguments:
rate(required) — Annual discount rate, evaluated with actual day differences on a 365-day basis.values(required) — Cash flows containing at least one positive and one negative value.dates(required) — Dates corresponding one-for-one with values; the first date anchors the valuation.
All three arguments are required. The annual discount rate is applied using actual day differences on a 365-day basis, and the first supplied date anchors the valuation.
Common uses
- Valuing irregular payment schedules
- Comparing dated cash-flow scenarios at a common discount rate
- Checking the present value associated with an XIRR calculation
Calculations
Excel treats the first date as time zero. Each later cash flow is discounted by the actual number of days from that first date divided by 365. The first cash flow is therefore included at its full amount.
The value and date ranges must be the same size. The rate must be greater than -100%, and dates before the first date can produce an error.
Function behavior
Situation | Behavior |
|---|---|
First cash flow | Not discounted; its date anchors the valuation. |
Irregular intervals | Each cash flow uses its actual day distance from the first date. |
Mismatched ranges | Excel returns an error. |
Rate at or below -100% | Excel returns an error. |
Later positive receipt | Present value falls when other inputs remain unchanged. |
Common errors
Using NPV for dated cash flows
What happens: The exact dates are ignored.
Better approach: Use XNPV when actual timing matters.
Misaligning values and dates
What happens: Excel cannot pair each cash flow with a date.
Better approach: Use ranges with identical row counts and verify the first date is the valuation anchor.
Example
Example 1
=XNPV(D12,B12:B16,A12:A16)
At the workbook's 10% rate, the dated schedule returns $291.59.
Example 2
=XNPV(D13,B12:B16,A12:A16)
Increasing the rate to 12% reduces present value to $264.06.
Example 3
=B12+NPV(D12,B13:B16)
Periodic NPV returns $149.72 because it assumes equal periods rather than using the visible dates.
Example workbook
The workbook shows two discount rates, a periodic NPV comparison, a delayed-receipt case, and two formula-driven timing checks.
Key takeaway
Use XNPV when actual dates matter; the first date sets time zero and every later cash flow is discounted by its day count.