Contact

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

Financial Beginner ONLYOFFICE Spreadsheet Editor

Calculate the equal depreciation expense allocated to each accounting period under the straight-line method.

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

Quick answer: Calculate the equal depreciation expense allocated to each accounting period under the straight-line method. The exact English function and argument order are documented by ONLYOFFICE (checked 2026-10-13). Numerical results below are computed independently, not observed in the editor.

Availability and version history

  • Introduced: The original introduction version 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. This unversioned help does not establish availability in every older build, mobile client or deployment.
  • Checked: October 14, 2026, against the official function reference. Documentation check; not a new native test.

What the function calculates — and when to use it

SLN allocates the depreciable basis (cost − salvage) evenly over the number of useful-life periods. The result is an amount per period, not a rate and not a future asset valuation. The accounting policy that determines useful life, residual value and eligibility for depreciation must come from the business context, not this formula.

Exact ONLYOFFICE syntax and argument order

=SLN(cost, salvage, life)
Position Argument Required status, type and meaning When omitted
1 cost Required numeric original asset cost none
2 salvage Required numeric estimated value remaining at the end of the asset life none
3 life Required numeric lifetime measured in the chosen periods none

All listed arguments are required; the official reference does not specify an omitted-argument default. Enter all parameters in the order shown. Do not type the argument placeholders literally.

Documented vendor-specific note: The official SLN reference describes straight-line depreciation and three positional arguments but does not provide defaults, sign rules, tax eligibility, or the exact native error code for zero life. Avoid presenting an assumed error result as native evidence.

Independent mathematical model: depreciation per period = (cost − salvage) ÷ life. After k periods, a simple undisturbed-model book value is cost − k × SLN(cost,salvage,life), bounded to the chosen useful life. This is an explanatory calculation model and is not an assertion about native error handling.

Reproduce the baseline worksheet, step by step

  1. Start a blank workbook in ONLYOFFICE Spreadsheet Editor and select an empty sheet. Use English formula names for the displayed examples.
  2. Enter the following input cells exactly. Enter amounts and period counts as numbers; enter rate schedules as numeric percentages where specified.
  3. Enter the first formula in the worked-example table into a blank output cell, such as H2, unless the setup names a particular output cell. Avoid overwriting the input ranges.
  4. Press Enter. Increase displayed precision to at least six decimal places. Compare with the independently calculated expected result.
  5. For the remaining rows, place each formula in a fresh blank output cell (H3, H4, and so on). Cells/ranges in the sample setup remain fixed unless an example explicitly uses different literal arguments.
Cell Value Meaning
B2 10000 acquisition cost in dollars
B3 1000 expected end-of-life residual value
B4 5 useful life measured in years
D2 =SLN(B2,B3,B4) expected annual depreciation expense
D3 =B2-B4*D2 expected book value after all five years: salvage value

Baseline interpretation: =SLN(B2,B3,B4) allocates $9000 depreciable value ($10000 cost minus $1000 residual) across five accounting years, producing $1800 each year. Confirm that =B2-B4*D2 reconstructs the $1000 residual.

Twelve copyable worked formulas and independently calculated answers

The expected result uses a decimal number with six digits after the decimal point (half-up rounding). Results are mathematical expectations from a 60-digit Decimal calculation checked with a separate floating-point implementation; no formula was executed inside ONLYOFFICE.

# Enter this exact formula Expected numerical result What this case demonstrates
1 =SLN(B2,B3,B4) 1800.000000 baseline annual straight-line depreciation
2 =SLN(10000,0,5) 2000.000000 asset fully depreciates to zero residual
3 =SLN(12000,2000,10) 1000.000000 long-lived asset with residual value
4 =SLN(5000,500,3) 1500.000000 three-year service life
5 =SLN(30000,5000,5) 5000.000000 larger capital equipment
6 =SLN(10000,1000,10) 900.000000 longer lifetime reduces annual charge
7 =SLN(7500,1500,3) 2000.000000 different cost-to-residual spread
8 =SLN(10000,1000,1) 9000.000000 one-period depreciation
9 =SLN(1000,200,8) 100.000000 small depreciable asset
10 =SLN(8000,2000,4) 1500.000000 four-period allocation
11 =SLN(2400,0,24) 100.000000 monthly depreciation over 24 months
12 =SLN(20000,2000,6) 3000.000000 six-period expense recognition

Advanced applications, interpretation and checks

Create a small asset depreciation ledger

Use columns for asset ID, cost, salvage estimate, number of accounting periods, and depreciation-per-period. For a five-year asset enter 5 as life only if each accounting period is a year. For an asset depreciated monthly over two years, use life=24 and express the expected per-month depreciation.

Calculate a book-value roll-forward

For the baseline, place period counts 0,1,2,3,4,5 in F2:F7. In G2, calculate =$B$2-F2*$D$2 and fill down. The expected end-year book values are 10000, 8200, 6400, 4600, 2800 and 1000. These values follow the stated straight-line model; they are not guaranteed market/resale values.

Confirm allocated value reconciles

Multiply periodic expense by the modeled useful life: =D2*B4 should equal =B2-B3. Use this invariant to detect mis-entered useful life or residual value. SLN can produce a different answer from accelerated-depreciation functions such as DB or DDB, because they embody different allocation methods.

Accounting is not tax advice

The result is an arithmetic allocation under stated assumptions. Actual depreciation policy may depend on jurisdiction, asset class, partial years, capitalization thresholds, impairment and tax rules. Keep those decisions separate from spreadsheet function mechanics.

Common errors, limits and troubleshooting

Problem Likely cause / investigation
Wrong annual expense life=60 months used with a report labelled years, or vice versa.
Cost fully expensed despite residual value Forgot to subtract salvage; SLN already uses cost − salvage.
Confused accumulated depreciation SLN gives one period’s expense, not cumulative expense; multiply by elapsed periods for the simple model.
Negative or undefined mathematical expense Salvage exceeding cost or a zero life changes the arithmetic; the official help does not specify all native error codes.
Depreciation differs from tax calculations Local tax schedules and partial-year conventions need separate methods; SLN alone does not implement them.

Additional validation and edge-case checklist

  • Use one unit of time consistently in life.
  • Check that the user-supplied residual value is economically justified rather than copied from market listings.
  • For assets sold early or impaired, an unmodified straight-line schedule is no longer a complete accounting model.

Error handling: The vendor reference does not list every invalid-input result. Diagnose an actual error using the entered values and installed build rather than importing an error rule from another spreadsheet.

Locale and workbook compatibility

The examples use English function names, decimal points and comma argument separators, matching the function-entry guide. Adapt notation to the installed formula-language and region settings. When moving a workbook between products, recalculate the small sample in the destination version before trusting the full model. Display precision is separate from the stored value; retain unrounded intermediate values when reconciling totals.

Official references