LN Function in ONLYOFFICE Spreadsheet Editor: Natural Logs, Growth Rates and Examples
Find the natural logarithm of positive numeric inputs in ONLYOFFICE, interpret multiplicative changes and troubleshoot domain restrictions.
Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked
Quick answer: LN returns the natural logarithm, meaning the exponent to which Euler’s number e must be raised to produce a positive input. Natural logs turn products into sums and ratios into differences, useful for growth-rate, scientific and data-analysis tasks.
Verification: Outputs are independently calculated mathematical expectations. Native Desktop/web execution, localized parsing, runtime errors and file round trips were not tested.
What LN does and when to use it
LN is not a base-10 log. If input rises by a factor of e, its natural log rises by 1. Inputs between 0 and 1 yield negative real logs.
For x>0: EXP(LN(x))=x; for positive a and b: LN(a/b)=LN(a)-LN(b); LN(1)=0.
Official syntax and argument order
=LN(number)
| Argument | Required? | Type and meaning |
|---|---|---|
number |
Required | A numeric value strictly greater than zero. |
There is no optional base parameter: LN always means the natural logarithm, mathematically base e. The reference does not document any defaults.
The spelling, argument order and documented defaults above follow the ONLYOFFICE LN function reference, accessed 2026-10-13. No argument-order assumptions were borrowed from another spreadsheet product.
Enter the function in ONLYOFFICE
- Open a blank spreadsheet and select an empty result cell.
- Type a formula beginning with
=, or use Formula → Function, search forLN, then enter the required arguments. - For the following examples, use the English function name, a decimal point, and commas where multiple arguments appear, matching ONLYOFFICE’s documented English formula examples.
- Confirm the result, then use the cell’s number format to display six decimal places when comparing fractional expected values.
- If a formula is rejected, check File → Advanced Settings for formula language and regional settings. ONLYOFFICE lets you change formula language and decimal/grouping separators; the exact punctuation for each locale has not been tested. Do not blindly replace commas with semicolons without checking the target installation.
Reproducible worksheet example
Enter the positive values below into A2:A7, type =LN(A2) into B2, and fill downward through B7. Apply a six-decimal display format to column B; your exact visible decimals depend on the chosen cell formatting.
| Row | A: positive number | B: formula | Expected B (six decimals) |
|---|---|---|---|
| 2 | 0.25 |
=LN(A2) |
-1.386294 |
| 3 | 0.5 |
=LN(A3) |
-0.693147 |
| 4 | 1 |
=LN(A4) |
0.000000 |
| 5 | 2 |
=LN(A5) |
0.693147 |
| 6 | 10 |
=LN(A6) |
2.302585 |
| 7 | 100 |
=LN(A7) |
4.605170 |
Verification method: table outputs above are numerical expectations computed independently with Python’s math library, formatted to six decimal places. They are not asserted as ONLYOFFICE screenshots, native execution results or exact display strings. The vendor’s reference verifies the formula form but not the sample rows.
Additional formulas you can reproduce
The following formulas use literal numeric values, so they can be pasted into any blank result cell of a scratch workbook. Results are six-decimal mathematical expectations (unless the underlying calculation is an exact integer).
| Formula to enter in a blank cell | Independently calculated expected value (six decimals) |
|---|---|
=LN(1) |
0.000000 |
=LN(2) |
0.693147 |
=LN(10) |
2.302585 |
=LN(100) |
4.605170 |
=LN(0.5) |
-0.693147 |
=LN(0.25) |
-1.386294 |
=ROUND(LN(2),3) |
0.693000 |
=LN(100/80) |
0.223144 |
=LN(200/150)/4 |
0.071921 |
=EXP(LN(2)) |
2.000000 |
Avoid mistaking a displayed rounded value for exact mathematical equality. A visible 0.000000 may arise from cell formatting when the internal value is merely small.
Advanced use: measuring proportional change
Put the starting value 80 in B2 and the ending value 100 in C2. Then enter:
=LN(C2/B2)
The independently calculated expected log change is 0.223144. This is a logarithmic change, not the simple percentage change. For the simple percentage, =C2/B2-1 returns 0.25 (25%). When the initial and final values are positive and their ratio is close to 1, log change approximates fractional percentage change but is not identical to it.
Annualized continuous growth
Suppose B2=150, C2=200, and D2=4 years. Enter:
=LN(C2/B2)/D2
Expected 0.071921 (about 7.192% continuously compounded per year). This assumes the values are positive and the time period is greater than zero. An ordinary compounded annual growth rate instead is =(C2/B2)^(1/D2)-1; the results measure related but different quantities.
Undoing a natural log
For A2=2, =EXP(LN(A2)) is mathematically 2 (subject to rounding). For A2=0.5, =LN(EXP(A2)) is mathematically 0.5. These are identities, not proof that particular historical ONLYOFFICE builds evaluate the nested formulas identically.
Why LN of a ratio is useful
LN(C2/B2) = LN(C2) - LN(B2) for positive B2 and C2. Using the ratio directly is often simpler and reduces repeated cell references. Check both inputs are positive before doing this.
Errors, restrictions and troubleshooting
| Symptom or issue | Check and correction | Evidence status |
|---|---|---|
Input is 0 or negative |
The official LN reference requires number > 0; correct the data or apply an explicit positive-only guard in the worksheet. |
Official reference |
| Expected 2 but got about 4.605 | LN(100) is about 4.605; if you want a base-10 result of 2, use LOG10(100) or LOG(100). |
Independent mathematics + official definitions |
| Wrong growth rate | Compare LN(end/start) against (end/start)-1; they are different metrics. |
Independent mathematics |
| Spreadsheet shows a syntax issue | Verify =, parentheses, numeric values and formula language. |
Official entry and regional settings |
| Error code for nonpositive input | Mathematical input is invalid, but the exact ONLYOFFICE message/code has not been observed natively. | Native testing pending |
| Input displays commas or unusual decimals | Check regional settings and decimals, not the underlying logarithm definition. | Official advanced settings |
Limits and precision
LN is undefined as a real-valued function for nonpositive inputs. The documentation explicitly requires the input to exceed zero but does not supply all possible coercion rules, exact error displays, first-supported Desktop release or error handling differences between self-hosted/web editors. These are pending native tests.
For a comparative spreadsheet tutorial, note that other spreadsheet editors may expose identically named functions, but naming alone does not prove equivalent coercion, domain error codes, or release support. Formula portability must be tested in the actual target software and version. No such third-party result is used to establish ONLYOFFICE behaviour here.
ONLYOFFICE Desktop, web and language compatibility
- Documentation scope: The current ONLYOFFICE Help Center function reference lists
LNin the Math and Trigonometry catalogue and gives the syntax above. The page does not identify the first supported Desktop, Docs server or self-hosted release. The listing is evidence of present documentation, not an execution test across editions. - Desktop/web: The separate Desktop Editors changelog and browser-oriented Spreadsheet Editor guide exist, but a specific minimum version for
LNwas not established. Do not label all historical versions compatible. - Locale: ONLYOFFICE advanced settings documents formula language and regional numeric formatting. The formulas here use English names and decimal-point notation. Localized formula names, separators and translated errors remain pending native verification.
- File exchange: These examples are designed around workbook formulas and simple numeric cells; saved-file round trips and cross-application differences were not executed.
Related ONLYOFFICE documentation and verified source links
| Evidence | Official ONLYOFFICE source | Accessed (UTC) | Version qualification |
|---|---|---|---|
| ln-syntax-domain: LN(number) is the natural logarithm of a numeric value greater than 0. | https://helpcenter.onlyoffice.com/functions/ln.aspx | 2026-10-13 | Current unversioned Help Center reference; no first-supported version inferred |
| exp-inverse: EXP(number) computes e raised to the exponent. | https://helpcenter.onlyoffice.com/functions/exp.aspx | 2026-10-13 | Current unversioned Help Center reference; no first-supported version inferred |
| editor-entry: The formula bar and Insert Function interface support manual and wizard entry. | https://helpcenter.onlyoffice.com/docs/userguides/spreadsheet_editor/InsertFunction.aspx | 2026-10-13 | Current unversioned Help Center reference; no first-supported version inferred |
| locale: Formula language and region/decimal settings are configurable. | https://helpcenter.onlyoffice.com/docs/userguides/spreadsheet_editor/AdvancedSettings.aspx | 2026-10-13 | Current unversioned Help Center reference; no first-supported version inferred |
| Function-insertion process | https://helpcenter.onlyoffice.com/docs/userguides/spreadsheet_editor/InsertFunction.aspx | 2026-10-13 | Current unversioned guide; Desktop/web steps may vary |
| Formula language and formatting | https://helpcenter.onlyoffice.com/docs/userguides/spreadsheet_editor/AdvancedSettings.aspx | 2026-10-13 | Current unversioned guide; region-specific entry untested |
Verification limitations
Native Desktop/web execution, text/blank coercion, invalid-argument errors, regional formula entry, historical release support and workbook round trips remain unverified.