The Google Sheets NPV function calculates the net present value of a series of future cash flows using a constant discount rate. To use it, type =NPV(rate, value1, [value2, ...]) into a cell, where rate is the discount rate per period and the values are the cash flows for each period. The function assumes the first cash flow occurs at the end of the first period, so if your initial investment is at time zero, you must add it separately to the NPV result. This guide walks you through the exact steps, common pitfalls, and fixes so you can trust your numbers.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- Your cash flow figures organised in a single row or column, one value per period (e.g., monthly or yearly).
- A discount rate expressed as a decimal or percentage (e.g., 10% or 0.10).
- Basic familiarity with entering formulas in Sheets (typing
=to start).
Step-by-Step
- Open your spreadsheet. Go to Google Sheets (sheets.google.com) and open an existing file or create a new blank spreadsheet.
- Enter your cash flows. In a single column (say A1:A5) or row (A1:E1), type each period's cash flow. Use negative numbers for outflows (costs) and positive numbers for inflows (revenue). For example, if you invest $1,000 now and expect $300, $400, $500, and $600 over the next four years, put -1000 in A1, then 300, 400, 500, 600 in A2:A5. Do not include labels in the same cells as numbers.
- Enter the discount rate. In a separate cell (e.g., C1), type your rate as a decimal: 0.10 for 10%. If you type 10%, Sheets stores it as 0.10 automatically, which is correct.
- Select the cell for the NPV result. Click an empty cell where you want the answer to appear, such as D1.
- Type the NPV formula. Start with
=NPV(. Then click the cell containing your discount rate (C1), type a comma, and select the range of future cash flows. Important: if your initial investment is at time zero (period 0), do not include it in the range. For the example above, the future cash flows are in A2:A5, so the formula is=NPV(C1, A2:A5). Press Enter. - Add the initial investment separately. Because NPV discounts the first value by one period, the time-zero cash flow must be added outside the function. In the same cell or a new one, use
=NPV(C1, A2:A5) + A1. This gives the true net present value including the upfront cost. If all your cash flows occur at the end of each period (no time-zero flow), you can include the entire range directly:=NPV(C1, A1:A5). - Format the result. Select the result cell, then click Format > Number > Currency (or your preferred format) to display the NPV as money.
- Verify with a simple check. Manually discount one cash flow to confirm: for period 1, divide the cash flow by (1 + rate). For period 2, divide by (1 + rate)^2, and so on. Sum those present values plus any time-zero flow; the total should match your NPV result. This catches range or sign errors early.
Common Mistakes
- Including the initial investment in the range. NPV treats the first value as occurring at the end of period 1, so putting a time-zero outflow inside the range understates its present value. Always add time-zero cash flows outside the NPV function.
- Using the wrong rate period. If cash flows are monthly, the rate must be a monthly rate. Mixing an annual rate with monthly cash flows gives a meaningless result.
- Forgetting negative signs. Outflows must be negative numbers. Typing 1000 instead of -1000 turns a cost into income and inflates NPV.
- Selecting non-contiguous ranges incorrectly. If your cash flows are in separate cells, list them as separate arguments:
=NPV(C1, A2, A4, A6). Do not use commas inside a single range reference. - Leaving blank cells in the range. NPV ignores blanks, which shifts later cash flows into earlier periods and distorts the result. Fill every period with a number, using 0 for periods with no cash flow.
- Confusing NPV with XNPV. XNPV accepts specific dates for each cash flow and is better for irregular timing. NPV assumes equal spacing between periods.
Tips
- Label your columns clearly (e.g., "Year 0", "Year 1") so you can see which cash flow belongs to which period.
- Use absolute references (e.g.,
$C$1) for the discount rate if you plan to copy the formula down or across. - To test different rates quickly, change the rate cell and watch the NPV update instantly—no need to edit the formula.
- For a series of equal cash flows, you can use PV instead of NPV, but NPV is more flexible for uneven amounts.
- Keep a separate "check" column that manually discounts each cash flow; it is a fast way to spot errors in your range selection.
- Remember that NPV is sensitive to the discount rate: small changes in the rate can swing the result significantly, so document your rate assumption.
Troubleshooting
- #VALUE! error: One or more cells in your range contain text instead of numbers. Check for stray spaces, labels, or currency symbols typed directly into number cells. Remove them or convert to plain numbers.
- #NUM! error: The rate is -1 or less, which makes the formula divide by zero or a negative number. Use a rate greater than -100% (typically a positive rate).
- Result looks too high or too low: Confirm whether your initial investment is inside or outside the range. Also verify the rate is per period, not annual, if cash flows are monthly.
- Formula returns 0 or blank: The range may be empty or contain only blanks. Select the range and ensure every period has a numeric value.
- Unexpected negative result: This is normal if the present value of future cash flows is less than the initial investment. Double-check the signs of your cash flows.
- Copied formula gives wrong answers: Relative references shift when copied. Use absolute references for the rate and for any fixed ranges, or lock the range with
$signs.
Frequently Asked Questions
What does the NPV function do in Google Sheets?
It calculates the net present value of a series of future cash flows using a constant discount rate. In other words, it tells you what those future cash flows are worth today.
Should I include the initial investment in the NPV formula?
No, if the initial investment occurs at time zero. NPV assumes the first cash flow is at the end of period 1, so add the time-zero cash flow separately to the NPV result.
Can I use NPV for monthly cash flows?
Yes, but the discount rate must be a monthly rate. If you have an annual rate, convert it to a monthly rate (e.g., annual rate divided by 12) before using NPV.
What is the difference between NPV and XNPV?
NPV assumes equal time periods between cash flows. XNPV lets you specify exact dates for each cash flow, making it suitable for irregular timing.
Why does my NPV formula return a #VALUE! error?
This usually means one or more cells in the range contain text. Check for labels, spaces, or non-numeric characters and remove them.
Can I use negative rates with NPV?
Yes, as long as the rate is greater than -100%. A negative rate increases the present value of future cash flows, which can be useful for modelling deflation or certain scenarios.