Section: Excel & Google Sheets

The NPV function in Excel discounts a series of future cash flows back to today and adds them up. =NPV(10%,-10000,3000,4200,6800) returns 1,188.44, which means the flows beat a 10 percent hurdle by that amount. It is the standard test for whether a project, a purchase or a marketing spend is worth doing. This guide covers the syntax, the time-zero trap that makes most first attempts wrong, a worked five-year example, and the difference between NPV, IRR and PV. The figures are made up.
What NPV calculates
Microsoft describes NPV as calculating the net present value of an investment using a discount rate and a series of future payments (negative values) and income (positive values). The idea is simple: money later is worth less than money now, so each future amount is divided by a compounding factor, and the results are added. A positive result means the flows beat the discount rate you chose. A negative result means they do not.
The syntax
=NPV(rate, value1, [value2], ...)
- rate is the discount rate for one period, such as 10% a year.
- value1, value2, ... are the payments and income, from 1 to 254 arguments.
- The values must be equally spaced in time and are treated as occurring at the end of each period.
- Empty cells, logical values, text and error values inside a range are ignored, so a blank row does not break the formula but does not count as a period either.

The time-zero trap
This is the part that catches nearly everyone. Microsoft's documentation says the NPV investment begins one period before the date of the value1 cash flow. In plain terms, the first value in the list is discounted by one full period, as if it happened at the end of year one. If your first cash flow happens today, at the start, it must be added to the result outside the function, not included in the list. So an outlay paid today looks like =NPV(rate,B2:B6)+B1, where B1 holds the negative outlay and B2:B6 hold the future flows. Put the outlay inside the list instead and you discount it by a year, which makes a weak project look better than it is.
A short worked example
With a discount rate of 10% in A2 and flows of -10,000, 3,000, 4,200 and 6,800, =NPV(A2,-10000,3000,4200,6800) returns 1,188.44. That is Microsoft's first example, and it treats the -10,000 as a period-one flow. Read the result as "the flows are worth 1,188.44 more than a 10 percent return would give".

A five-year project
Now a project that costs 40,000 today and returns 8,000, 9,200, 10,000, 12,000 and 14,500 over five years, discounted at 8%. The outlay is at time zero, so it sits outside the function: =NPV(8%,B4:B8)+B3 returns 1,922.06. Add a loss of 9,000 in year six and the answer falls to -3,749.47, which says the project fails the 8% hurdle once that bad year is included. Microsoft uses this pair of examples, and they show why the tail of a project matters as much as the first two years.
What the answer means
Compare the result with zero, not with the size of the investment. If the question is how much you must sell to break even rather than whether a project clears a rate, a break-even model is the closer tool. A positive NPV means the flows return more than the discount rate; a negative one means they return less. The discount rate is therefore the real decision: use the return you could get elsewhere, or your cost of capital, and say which you used. A project that looks excellent at 5% can look poor at 12%, and neither number is wrong.

NPV, IRR and PV
IRR is the discount rate that makes NPV equal zero, so it answers "what return does this project earn" instead of "does it clear my hurdle". PV handles a series of equal, constant payments and can place them at the start or the end of the period, which NPV cannot. For a simple loan or a lease, PV is the right tool. For uneven project cash flows, NPV is. In a cash flow forecast the same rule applies: keep the timing of every row honest. Microsoft notes the relationship directly: IRR is the rate for which NPV equals zero.
Common problems
- The result looks too good. The initial outlay is inside the value list and was discounted by a period. Move it outside and add it.
- A rate typed as 10 instead of 10%. The formula reads 10 as 1,000 percent. Enter 0.1 or use the percent format.
- Flows at uneven intervals. NPV assumes equal spacing. Monthly flows need a monthly rate, not an annual one.
- Blank rows inside the range. They are ignored, so the periods silently compress and later flows are discounted too little.
- Text or dashes in a column. Non-numeric cells are skipped, which can hide a missing year.
- Signs mixed up. Costs negative, income positive, consistently. A flipped sign produces a plausible but meaningless total. Lock the input cells with absolute references before copying the formula across a model.

Questions and answers
Does NPV include the initial investment?
Only if you put it in the list, and then it is discounted by one period. For an outlay paid today, add it outside the function.
What discount rate should I use?
The return you could get on a comparable alternative, or your cost of capital. State the rate next to the result so the reader can judge it.
Is a higher NPV always better?
Between projects of similar risk and size, yes. For very different sizes, compare the return as well, which is what IRR gives you.
Does NPV work in Google Sheets?
Yes, with the same arguments and the same end-of-period assumption. Check Google's function page before copying a model.
Can NPV handle monthly cash flows?
Yes, if the rate is monthly and the values are one per month. Do not mix an annual rate with monthly flows.
