XNPV finds the net present value of cash flows that happen on irregular dates. Where NPV assumes the cash flows are equally spaced, XNPV uses the actual date of each one. The formula =XNPV(9%,B2:B6,A2:A6) discounts each value in column B by the number of days between its date in column A and the first date, divided by 365.
How the discounting works
Each cash flow is divided by (1+rate)^((date - first_date)/365). The first date is therefore time zero, and the first cash flow isn't discounted at all. This is a significant difference from NPV, which discounts its first value by a full period. With XNPV you put the initial outlay in the range, at the first date, and you don't need to add anything separately.
A check: if -1,000 on 1 January 2025 and 1,100 on 1 January 2026 are exactly 365 days apart, XNPV at 10% returns zero, because 1,100 discounted by one year at 10% is 1,000.
The arguments
- rate is an annual rate. It is used with a 365-day year, whatever the dates.
- values are the cash flows. At least one must be positive and one negative, or XNPV returns
#NUM!. - dates are real dates. A text date can cause
#VALUE!, and a date earlier than the first date returns #NUM!. Order matters only for the first date: the others can come in any sequence.
Why not NPV for dated cash flows
With three cash flows on 1 January, 1 July and 1 January, NPV treats them as three equal periods and the result is wrong for an annual rate. XNPV counts 181 days and 184 days and gets the timing right. For cash flows that really are annual or monthly with equal gaps, NPV and XNPV give similar answers, but XNPV can differ slightly because it uses actual days, with leap years included.
Common uses
- Investments and property deals with irregular receipts.
- Cash flow models with payments on specific invoice dates.
- Discounting a schedule where the dates are in a column.
- Present value at a fixed date: put that date first with a zero cash flow.
Related functions
XIRR is the matching rate calculation: it finds the rate at which XNPV is zero. IRR and NPV are the same pair for equally spaced flows.
XNPV assumes a constant annual rate for the whole period and ignores tax and fees.