Function · Financial
Excel XNPV function
The Excel XNPV function discounts cash flows on the dates you supply. The XIRR example's flows are worth about $763.95 at 8%.
Syntax =XNPV(rate, values, dates)
=XNPV(0.08,B2:B5,A2:A5)Arguments
| Name | Required | What to pass |
|---|---|---|
| rate | Required | The annual discount rate. |
| values | Required | Cash flows. The first is usually today, or the investment date, and it is not discounted. |
| dates | Required | One date per cash flow. A date earlier than the first date is #NUM!. |
Examples
The uneven receipts discounted at 8%
=XNPV(0.08,B2:B5,A2:A5)Result $763.95
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Cash | Rate | |
| 2 | 1/15/2026 | -10000 | 8% | |
| 3 | 6/1/2026 | 2500 | 763.95 | |
| 4 | 11/1/2026 | 4000 | ||
| 5 | 3/15/2027 | 5000 |
XNPV discounts each cash flow by the exact number of days from the first date. At 8%, the schedule from the XIRR page is worth about $763.95. The first amount, the $10,000 paid on January 15, 2026, sits on the start date, so it is included at face value. Later amounts are discounted on a 365-day year. That is different from NPV, which always steps one full period and does not want today’s cash inside the list.
The rate is annual. A date before the first date is #NUM!, and so is a values range that is longer than the dates. The rate that drives this present value to zero is the XIRR of the same two columns.