NPV Function (Gnumeric)
Discount equally spaced future cash flows in Gnumeric and add the initial investment separately to calculate project NPV.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
What it does. NPV discounts a series of cash receipts and payments occurring at equally spaced periods, beginning with period 1. It helps determine the present value of money received or spent later, at a chosen rate per period. The first flow passed to NPV is not treated as the payment happening today. This timing distinction follows the official Finance manual’s period-1 argument definition and the financial plug-in’s range_npv discount loop (manual; source lines 1434–1475).
Availability and version history
- Introduced: Documented by 1.12.62; original introduction not established.
- Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-financial function module must be included and enabled.
- Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
Syntax and arguments
=NPV(rate,value1,value2,…)
| Parameter (in order) | Type and meaning | Required/default |
|---|---|---|
rate |
Numeric discount/interest rate per equally spaced period; e.g. 10% for annual periods or 10%/12 for monthly periods. |
Required; no documented default. |
value1 |
Numeric period-1 flow, or a range whose first numeric value is period 1. Positive = receipt; negative = payment. | Required; no documented default. |
value2, … |
Additional period-2 onward flows, individually or via ranges. | Optional repeated arguments; not a time-zero slot. |
The mathematical model is NPV(r,C1,…,Cn) = Σ[t=1..n] Ct/(1+r)^t. A cash flow C0 today is not part of this discounted sequence: net project NPV = C0 + NPV(r,C1,…,Cn). At −100%, the discount denominator is zero. Below −100%, integer-period factors alternate signs and are unsuitable for ordinary investment analysis. Evidence: official manual and upstream range_npv routine.
Reproducible worksheet: is a four-year project worth it?
Use the shared five-row cash-flow dataset (all periods are one year apart for NPV/IRR; the dates in column B are not used by this function):
| Row | A — cash flow (currency units) | B — actual date | Offset from B2 |
|---|---|---|---|
| 2 | -1000 | =DATE(2025,1,1) |
0 days |
| 3 | 300 | =DATE(2025,3,1) |
59 days |
| 4 | 350 | =DATE(2025,7,1) |
181 days |
| 5 | 400 | =DATE(2026,1,1) |
365 days |
| 6 | 450 | =DATE(2026,10,1) |
638 days |
Enter the cash flows in A2:A6 as numbers (not currency strings). In B2:B6, enter the indicated DATE formulas as actual date values and format them as dates. A negative value is an outgoing investment, a positive value is a receipt. These example cash flows and dates are illustrative, not investment advice.
With the annual discount rate in D2 (10%), enter:
=NPV(D2,A3:A6)
Expected: 1,169.8654463493 currency units, the discounted future receipts only. To include the 1,000-unit payment at time zero, enter:
=A2+NPV(D2,A3:A6)
Expected net NPV: 169.8654463493 (about 169.87 with two-decimal display). Show two decimal places using number formatting instead of rounding the underlying input flows. Derived independently from 300/1.1 + 350/1.1² + 400/1.1³ + 450/1.1⁴ = 1169.8654463493.
Common mistake: =NPV(10%,A2:A6) incorrectly treats the initial −1,000 as a period-1 cash flow and shifts every receipt one period later. It does not express the project’s time-zero NPV. The correct formula is =A2+NPV(10%,A3:A6).
Advanced example: discount-rate sensitivity and investment decision
Put candidate annual hurdle rates 5%, 10%, and 15% in D5:D7. In E5 enter:
=$A$2+NPV(D5,$A$3:$A$6)
Fill through E7. Each rate applies to all four future equal yearly periods. Higher discount rates reduce the present value of these positive future receipts. At 10% the result is approximately 169.87; at the cash-flow IRR (approximately 17.0937%) the NPV is mathematically near zero. Unlike a positive result, a negative NPV at the chosen required rate indicates the project fails that specific hurdle on these modelled flows. Neither result accounts for unmodelled risk or the reliability of the forecast.
Multiple regions: NPV(rate,A3:A4,A5:A6) has the same intended ordering as one continuous four-period range if every cell is numeric and all periods are equally spaced. Maintain chronological order; don’t omit a real zero-cash-flow period simply because it has no payment.
Errors, edge cases and troubleshooting
#DIV/0!, including a −100% discount rate: the financial plug-in’srange_npvreturns an error if its discount denominator is zero; it also uses a divide-by-zero error fallback for invalid/no usable data (source). Use a valid numeric rate and a usable numeric cash-flow sequence.- Suspiciously low or high NPV: check that
A2is added outsideNPV; otherwise all payments shift one period. Check whether your rate is annual, monthly or quarterly and matches the flow intervals. - Missing/blank periods: source flags ignore blank cells in its collection of cash flows. This can collapse the timeline. Enter a numeric
0for a genuine no-cash-flow period; never rely on a blank cell to preserve a period. - Text/Boolean cells: the upstream collector treats text and Boolean values differently depending on whether they occur in a range or as direct arguments (source); keep inputs numeric rather than assuming textual numbers or TRUE/FALSE are cash flows.
- Rounding differs: spreadsheet formatting changes displayed digits, not the underlying arithmetic. Compare precision before attributing a discrepancy to the function.
- Irregular transaction dates: this function is for regular intervals. Use
XNPVwith actual paired dates instead of pretending two months and one year are equal periods.
Related Gnumeric guides
Gnumeric scope and compatibility
This tutorial is for Gnumeric 1.12, checked against the official Finance manual and public function catalogue on 13 October 2026, with 1.12.62 the documented stable release announced in September 2026. The catalogue marks this named function Complete / Basic (registered implementation and a basic upstream test classification). Those are not proofs that this particular worksheet has been executed, nor a blanket guarantee of Excel, LibreOffice or another spreadsheet’s parsing, coercion or file-import behavior. The Finance manual identifies purpose and argument order. Implementation claims were independently checked against plugins/fn-financial/functions.c in the checksum-verified official Gnumeric 1.12.62 source archive on 13 October 2026. Source inspection is not native application execution.
Examples use commas as argument separators, a period for decimals, and percent input as shown in the English Gnumeric documentation. Gnumeric’s entry/display conventions may vary by locale; if your configured formula editor expects different separators, adapt the punctuation without reordering arguments. Verify any workbook imported from another program in Gnumeric before relying on financial decisions.
Verification boundary: All numerical results below were independently calculated outside Gnumeric; no native Gnumeric execution or screenshots were performed.
References
All pages and source claims below were checked on 2026-10-13.
- Gnumeric 1.12 Finance function reference — specific section for NPV, defining syntax, order, parameters and purpose.
- Gnumeric official function catalogue — NPV: Complete / Basic, an upstream registration/testing classification rather than live worksheet validation.
- GNOME Gnumeric source, financial functions — implementation details from
plugins/fn-financial/functions.cin the checksum-verified official 1.12.62 source archive. - Gnumeric 1.12.62 official release notice — current 1.12-series release context as of 2026-10-13.