In Excel: compute net present value with =NPV(rate, B2:B4)+B1 — where B1 holds the (negative) year-0 investment OUTSIDE the NPV range — and the internal rate of return with =IRR(B1:B4) over the full series including year 0.
3 one value per year
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
NPV discounts future cash flows back to today at a chosen rate and nets them against the upfront investment; a positive NPV means the project beats that rate. IRR is the discount rate at which NPV is exactly zero. The classic trap is that Excel's NPV assumes every value in its range sits one period in the future — so the year-0 investment must be added outside the function, while IRR wants the full series including year 0. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “npv calculator excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
B1 holds -10000 (investment today), B2:B4 hold 3000, 4200, 6800. =NPV(10%,B2:B4)+B1 returns €1,307.29 — the project creates value at a 10% hurdle rate. =IRR(B1:B4) returns 16.36%, the rate at which the same series breaks even. NPV and IRR are the standard go/no-go arithmetic for investments, equipment purchases, and projects — and the off-by-one-period NPV trap is probably the most common spreadsheet finance error. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. The short version of “npv calculator excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
Common mistakes
- Including the year-0 investment inside the
NPVrange, which discounts it one year too many. - Feeding
IRRa series with no sign change — it needs at least one negative and one positive flow. - Comparing projects of different lengths by
IRRalone;NPVat a common rate is the safer ranking. - Using annual
NPV/IRRon monthly flows — switch the rate to a monthly rate or useXNPV/XIRRwith real dates.
Frequently asked questions
Why does Excel's NPV differ from my finance textbook?
Excel's NPV discounts every range value by at least one period. Add the year-0 flow outside the function: =NPV(rate,flows)+initial.
What does #NUM! from IRR mean?
IRR could not converge — usually the series has no sign change, or you should supply a guess: =IRR(range, 0.1).
When should I use XNPV and XIRR?
When cash flows are not evenly spaced. XNPV/XIRR take actual dates alongside the values.