NPV vs XNPV in Excel: The Period-Zero Mistake and When Dates Matter
A plant manager submits a capital request: 500,000 today, then 150,000, 175,000, 200,000 and 225,000 over the next four years. The template says =NPV(10%, B1:B5) and returns 77,212. The same cash flows, correctly discounted, are worth 84,933. The template has been understating every project by 10% for as long as anyone can remember, and because it understates all of them equally, nobody noticed.
NPV is the most-used valuation function in finance and the most commonly misused. This post covers the period-zero mistake, when XNPV is the better function, the mid-year convention, and how much timing assumptions move a business case. The examples use Excel 2021 or 365 and a 10% annual discount rate.
What NPV actually assumes
Excel’s NPV assumes every value in the range arrives at the end of a period, starting one period from now. The first value is discounted once, the second twice, and so on. There is no period zero in the function.
So when the initial outlay sits in the first cell of the range, Excel treats it as happening a year from now and discounts it. Every later cash flow is pushed one year further out than it should be. The result is the true NPV divided by 1.10: 77,212 instead of 84,933.
The fix is to leave the day-one cash flow out of the range and add it back:
=NPV(Rate, B2:B5) + B1
B1 is the -500,000 outlay, undiscounted because it happens today. B2:B5 are the four annual inflows. Result: 84,933. The NPV page covers the function’s other arguments; this is the one mistake that matters.
A quick test for any inherited model: if the NPV formula’s range starts at the investment, it is wrong. Check the IRR in the same model too. IRR does expect period zero inside the range, which is how the two get mixed up.
When to use XNPV instead
XNPV takes a list of cash flows and a matching list of dates, and discounts each one by the actual days from the first date:
=XNPV(Rate, B1:B5, A1:A5)
Unlike NPV, XNPV includes the first cash flow and treats its date as day zero, so the period-zero mistake cannot happen. With year-end dates from 30 June 2026 to 30 June 2030 it returns 84,816. The 117 difference from NPV comes from XNPV counting actual days over a 365-day year, and 2028 being a leap year.
Use XNPV when:
- Cash flows are irregular. A deposit at signing, a milestone payment after nine months, a balloon at the end. NPV has no way to say “nine months”.
- The valuation date is not a period end. An acquisition closing on 14 March discounts the first year’s cash flows by less than a full year.
- The model is monthly or quarterly. XNPV with month-end dates uses the annual rate directly. NPV needs a periodic rate, and getting that wrong is the next problem.
Use NPV when the cash flows are evenly spaced and the analysis is quick. For anything that goes to an investment committee, XNPV with real dates is easier to defend because every discount factor maps to a date someone can read.
Monthly cash flows need the right rate
If a model has monthly cash flows and a 10% annual hurdle rate, the common shortcut is =NPV(10%/12, ...). Monthly compounding at 0.833% a month gives an effective annual rate of 10.47%, not 10%. The equivalent monthly rate is:
=(1+AnnualRate)^(1/12) - 1
That is 0.797% a month. The difference is small per month and adds up over a five-year monthly model. XNPV avoids the question entirely, because it always discounts with the annual rate and actual days.
The mid-year convention
NPV assumes each year’s cash arrives on the last day of the year. Operating cash flow does not; it arrives through the year. Valuation work often uses a mid-year convention, discounting each year’s cash flow by half a year less.
For evenly spaced flows with the outlay at time zero, the shortcut is to multiply the discounted inflows by half a period of growth:
=NPV(Rate, B2:B5) * (1+Rate)^0.5 + B1
In the example the inflows are worth 4.9% more, and NPV rises from 84,933 to 113,483. The outlay stays outside the adjustment because it really does happen on day one. Which convention is right depends on the business: a retailer collecting cash daily is close to mid-year; a project paid in annual milestones is close to year-end. Pick one, write it on the assumptions tab, and use it for every project the committee compares.
Timing moves the answer more than the rate
Delay each of the four inflows by six months, so they land on 31 December instead of 30 June, and XNPV falls from 84,816 to 57,381. A six-month slip costs a third of the project’s value at a 10% rate. Raising the discount rate from 10% to 11% costs about 13,000, less than half as much.
This is where business cases get optimistic. Revenue that starts the month the equipment is delivered, a ramp that reaches full volume in quarter one, a customer who pays on day one. When reviewing a capital request, ask for the dated cash flow schedule, not just the annual totals, and run XNPV on a version where everything arrives one quarter late. If the project still clears the hurdle, approve it.
Where it breaks
The outlay inside the NPV range. Covered above, and still the most common error in inherited templates.
Signs. NPV and XNPV need outflows negative and inflows positive. A schedule that shows capex as a positive cost line will return an NPV that is wildly too high.
Blank cells. NPV skips blank cells, which shifts every later cash flow one period earlier. Put zeros in years with no cash flow.
XNPV dates out of order. Dates after the first can be in any order, but no date can be before the first one. A cash flow dated before the valuation date returns #NUM!.
Comparing NPV with IRR from different conventions. If NPV uses mid-year timing and IRR uses year-end, the two will tell slightly different stories about the same project. The IRR and XIRR errors post covers IRR’s own failure modes.
