Contact

NPER Function in ONLYOFFICE Spreadsheet Editor: Syntax, Examples and Troubleshooting

Financial Intermediate ONLYOFFICE Spreadsheet Editor

Calculate how many fixed-payment periods are needed with ONLYOFFICE NPER.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

NPER calculates how many equal payment periods are needed for a loan or savings target. It returns a period count, which can be fractional, rather than a calendar date.

Availability and version history

  • Introduced: The original introduction release and date are not established by the official sources checked.
  • Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final working-version endpoint is established.
  • Scope: Docs and Desktop Editors release separately. The unversioned reference does not establish support in every older build or mobile client.
  • Checked: October 14, 2026, against the official NPER reference. Documentation check; not a new native test.

Exact documented syntax and argument order

=NPER(rate, pmt, pv, [fv], [type])

Square brackets show optional arguments; do not type the brackets into a formula.

Position Argument Type, interpretation, required status Omitted default
1 rate Required interest rate per period —
2 pmt Required signed fixed payment per period —
3 pv Required signed present value of existing amount —
4 fv Optional signed future value target 0
5 type Optional payment timing: 0 at end; 1 at beginning 0

Unlike the nper argument in PMT, the NPER function returns a period count, potentially noninteger. It is not a date function.

Signs: The vendor explains that money paid out is negative and money received is positive. Thus a loan with pv=10000 and negative payments models the borrower receiving $10,000 then making outflows. Interest must be expressed per payment period, not automatically per year. type=0 means end-of-period; type=1 means beginning-of-period.

Set up a reproducible worksheet

Enter the following in a blank worksheet. Keep B2:B7 unchanged and put each result in an unused cell starting at D2. Inputs with a leading equals sign are formulas, not literal text.

Cell Enter exactly Meaning / expected displayed value
B2 =6%/12 Periodic rate = 0.005 (0.5% per month)
B3 60 60 monthly payments
B4 10000 $10,000 received at outset
B5 0 Zero remaining future cash flow
B6 0 Payments due at period end
B7 =PMT(B2,B3,B4,B5,B6) Baseline monthly payment, approximately āˆ’193.328015

Worked formulas and expected outputs

Expected numerical results are shown to six decimal places. Rates are decimal fractions: 0.005 means 0.5%.

# Formula to enter in a fresh output cell Expected numeric value What this tests
1 =NPER(B2,B7,B4) 60.000000 Solve back the original 60-month loan term.
2 =NPER(B2,-200,B4) 57.680136 Monthly $200 outflow on $10,000 principal.
3 =NPER(0,-100,1200) 12.000000 Zero-rate case: $1,200 paid in $100 installments.
4 =NPER(B2,PMT(B2,60,B4,0,1),B4,0,1) 60.000000 Solve back 60 beginning-of-month payments.
5 =NPER(B2,-200,B4,0,1) 57.347908 Beginning-of-month payments shorten the horizon.
6 =NPER(4%/12,-150,0,10000,0) 60.301488 Monthly savings toward $10,000 from a zero balance.
7 =NPER(B2,0,-10000,15000) 81.295586 Investment growth with no further payments.
8 =NPER(B2,-200,B4,-2000,0) 47.395852 Target a signed terminal balance.

Advanced uses and independent mathematical explanation

Why NPER can return a fraction

NPER solves for a continuous number of period intervals in a compound-interest equation. For fixed rate r, payment P, present value V, future value F, payment timing t, and r ≠ 0, the mathematical solution is n = LN((PƗ(1+rƗt)āˆ’FƗr)/(PƗ(1+rƗt)+VƗr))/LN(1+r), where the logarithm arguments are positive. At r=0, n=āˆ’(V+F)/P when P≠0. The expression is useful for checking expected results; it is not a guarantee about a particular installed editor’s numerical method or error messages.

A result such as 57.680136 months means 57.68 equal-payment periods mathematically. Loan servicing normally uses whole payments and an adjusted final installment; rounding NPER to 58 does not prove an additional full payment is due. For this idealized month-end schedule, 57 full $200 payments leave approximately 135.458372. One more month’s interest gives a final payment of approximately 136.135663, rather than another full $200. On a separate worksheet, the balance check is =10000*(1+0.005)^57-200*((1+0.005)^57-1)/0.005. Actual contractual rounding may change the last payment.

Loan versus goal savings

The baseline loan uses positive pv=10000, negative pmt=-200, and fv=0. For an investment goal, start pv=0, enter a negative monthly savings deposit pmt=-150 and positive target fv=10000; the sign convention matters. Set type=1 for deposits at the beginning of each period. Make every rate and time unit comparable; for a 4% nominal annual rate with monthly credits, use 4%/12 for rate and read result as months.

Troubleshooting and limits — documented versus inferred

Problem / observation Likely issue and actionable response
A fractional period was returned The financial equation has a real-valued solution; a repayment schedule needs whole periods and possibly an adjusted final payment.
Invalid or nonfinite mathematical answer Cash-flow signs, payment size, or interest may make the logarithm ratio nonpositive or repayment impossible; do not invent a specific ONLYOFFICE error token.
Period count looks 12Ɨ too small You passed a yearly rate with monthly payment amounts. Convert rate consistently.
Saving goal returns unexpected sign To grow from zero to a positive future target, deposits are negative cash flows while future value is positive.
Beginning payments unexpectedly differ Omitting type means zero; specify 1 when payments occur at the start of a period.

Entry settings and verification

Examples use English function names, commas and numeric decimal rates. The function-entry guide describes the function dialog; Advanced Settings covers formula language and regional formatting. ROUND explains deliberate numeric rounding, and SUM helps build cash-flow checks.

Expected values were independently calculated from the stated financial equations and separately cross-checked. No example was executed in ONLYOFFICE. Fixed-rate models omit fees, taxes, irregular dates and contractual rounding unless those assumptions are added explicitly.