Contact

LN Function in ONLYOFFICE Spreadsheet Editor: Natural Logs, Growth Rates and Examples

Math and Trigonometry Intermediate ONLYOFFICE Spreadsheet Editor

Find the natural logarithm of positive numeric inputs in ONLYOFFICE, interpret multiplicative changes and troubleshoot domain restrictions.

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

LN returns the natural logarithm of a positive number. It tells you which power of e produces that number. Use it to measure multiplicative changes, recover continuous-growth rates and turn products into sums.

Availability and version history

  • Introduced: The original introduction version and date are not established by the checked sources.
  • Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final supported-version endpoint is established.
  • Scope: Docs and Desktop Editors release separately. The unversioned help does not establish identical support in older builds, mobile clients or every deployment.
  • Checked: October 14, 2026, against the official LN reference and related function entries. Examples were independently calculated; these formulas have not been run in the native application.

Syntax and positive-input requirement

=LN(number)

The official LN reference requires a numeric input greater than zero. LN always uses base e; there is no optional base argument. Use LOG for another base or LOG10 for base ten.

A negative logarithm does not imply a negative input: values between zero and one have negative natural logarithms. LN(1) is zero.

Build a reproducible log worksheet

Create NaturalLogLab using A1:D7. Label A:D Positive number, Natural log, Recovered number and Difference. Enter the six inputs below. Put =LN(A2) in B2, =EXP(B2) in C2 and =C2-A2 in D2; fill B2:D2 through row 7.

Row A: input Expected B, six decimals Expected C
2 0.25 -1.386294 0.25
3 0.5 -0.693147 0.5
4 1 0.000000 1
5 2 0.693147 2
6 10 2.302585 10
7 100 4.605170 100

Each difference has a mathematical target of zero. Small floating-point residuals are possible. Display B to six decimal places without rounding its underlying value before the inverse check.

In F1:G3, use labels in F and the following controls in G:

Cell Formula Expected result
G2 =ROUND(LN(2),3) 0.693
G3 =EXP(LN(2)) 2

On a separate VendorLN sheet, enter 23 in A1 and =LN(A1) in C1. The vendor illustration shows 3.13549422.

Log change versus ordinary percentage change

Create ChangeComparison using A1:F2. Label the columns Initial, Final, Log change, Simple change, Log difference and Reconstructed ratio. Enter A2=80 and B2=100.

Cell Formula Expected result
C2 =LN(B2/A2) 0.2231435513
D2 =B2/A2-1 0.25
E2 =LN(B2)-LN(A2) 0.2231435513
F2 =EXP(C2) 1.25

The ordinary increase is 25%. The log change is about 0.223144; formatting it as a percentage would show 22.314355%, a different measure. The two are close for small changes, but they are not interchangeable.

For positive inputs, LN(final/initial) equals LN(final)-LN(initial) mathematically. Both inputs must be positive even if their ratio could otherwise appear positive.

Why successive log changes add

Create ChangePath using A1:D4, with headers Value, Step log change, Step simple change and Running log change. Put 80, 100 and 120 in A2:A4. Leave B2:D2 empty. In B3 enter =LN(A3/A2), C3 =A3/A2-1, and D3 =B3. In B4 enter =LN(A4/A3), C4 =A4/A3-1, and D4 =D3+B4.

Row Expected B Expected C Expected D
3 0.2231435513 0.25 0.2231435513
4 0.1823215568 0.20 0.4054651081

In F2 enter =LN(A4/A2) → 0.4054651081; F3 =EXP(D4)-1 → 0.5; F4 =C3+C4 → 0.45. Label E2:E4 accordingly. Adding simple changes gives 45%, while the complete path grows by 50%.

Annualize a continuous rate

On AnnualGrowth, create A1:G2 with headers Initial, Final, Years, Continuous annual rate, Effective annual rate, Reconstructed final and Difference. Enter 150, 200 and 4 in A2:C2.

Cell Formula Expected result
D2 =LN(B2/A2)/C2 0.0719205181
E2 =(B2/A2)^(1/C2)-1 0.0745699318
F2 =A2*EXP(D2*C2) 200
G2 =F2-B2 0

The rates are approximately 7.192052% continuous and 7.456993% effective per year. This endpoint model excludes intervening cash flows. Positive amounts and a positive duration are required.

For a separate inverse check, put 0.5 in A2 of InverseCheck and =LN(EXP(A2)) in B2: the mathematical target is 0.5. EXP is the inverse operation, subject to numerical range and precision.

Troubleshooting

  • Zero and negative inputs are outside the documented domain. The reference does not name their exact runtime error tokens.
  • A displayed zero may be a small value rounded by cell formatting. Inspect more decimals.
  • For an arbitrary base, changing LN’s argument list is not the solution; use LOG instead.
  • Text and blank-cell conversion, extreme-value behavior and translated formula punctuation remain unspecified here. Enter explicit positive numeric inputs.
  • Retain unrounded intermediate values in rate and inverse checks; round only the final presentation when appropriate.