STDEV.S in ONLYOFFICE: Sample Standard Deviation
Use STDEV.S and legacy STDEV in ONLYOFFICE with worked examples, CSV data, migration checks, and documented input-rule caveats.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
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 19, 2026, against the official function reference. Documentation and independently calculated examples; no native test of these cases.
Quick answer
Use STDEV.S in ONLYOFFICE to estimate standard deviation from a sample, using a variance denominator of n minus one. The working example below describes delivery lead times; its result is measured in hours. The official reference supports the function’s identity and purpose.
This guide also covers the older spelling STDEV. The two names share a calculation implementation in the inspected official source; the legacy examples and compatibility checks below explain how to review existing workbooks using the older name.
Syntax and arguments
=STDEV.S(number1, [number2], ...)
Numeric inputs: individual numbers or cell ranges holding the observations. One range can contain many observations; a header is not a measurement.
Additional inputs: optional extra numeric values or ranges. The reference lists up to 255 numeric arguments. Omit the square brackets when entering a formula. A range supplies its observations without turning each cell into a separate function argument.
When this calculation is useful
Use the sample measure when the observed records stand in for a larger process, period or population. More rows do not automatically make a data set a complete population: a thousand sampled tickets can still be a sample of a year’s activity. Write the intended population beside the result.
The output has the same measurement units as the input, which makes it easier to interpret than variance. It is not the average absolute distance from the mean, an uncertainty interval, or the standard error of the mean. The function also cannot correct selection bias or decide whether observations are sufficiently representative for your interpretation.
Set up the practice data
A team delivery register with one row per completed shipment provides the scenario. Enter the following numeric observations into A2:A9, one per row, with a header in A1. Use H2:H4 for the three result formulas, outside the input and CSV fields.
| Cell | Hours |
|---|---|
| A2 | 14 |
| A3 | 18 |
| A4 | 22 |
| A5 | 18 |
| A6 | 26 |
| A7 | 30 |
| A8 | 10 |
| A9 | 22 |
Download the ONLYOFFICE STDEV.S practice data (CSV). Import it into a new, blank sheet starting at A1, with a comma as the file delimiter and the header row retained. The CSV contains input values only, not formulas or native test results. The extra test values occupy F2:F5. The CSV also contains record IDs in B and an unused RequestedPosition field in D; these are not observations and must not be included in the statistical range. Keep observations numeric rather than importing them as text.
Three worked examples
Example 1: Measure spread in the working register
Enter in H2:
=STDEV.S(A2:A9)
Expected result: 6.414270 (displayed to six decimal places).
The numeric count is 8, the mean is 20, and the sum of squared deviations is 288. Divide by 7 (n minus one), then take the square root to return to the original measurement units.
Example 2: Check the denominator with three known numbers
Enter in H3:
=STDEV.S(2,4,6)
Expected result: 2.
The mean is 4 and the squared deviations are 4, 0 and 4, for a total of 8. The sample denominator is 2, and the square root of that variance gives standard deviation.
Example 3: Do not confuse real zeros with missing data
For this check, use F2:F5 containing 0, 0, 8, 8, in that order. These values are included in the practice file.
Enter in H4:
=STDEV.S(F2:F5)
Expected result: 4.618802 (displayed to six decimal places).
All four observations are real measurements, including both zeros. The mean is 4 and the squared deviations total 64. Excluding the zeros would leave two equal values and falsely describe this group as having no spread.
Advanced: expose every deviation without changing the data
Keep the imported or manually entered data intact. Use J1:L1 for Observation, Deviation and Squared deviation. In N2 enter =AVERAGE(A2:A9); expect 20. Enter J2 =A2, K2 =J2-$N$2 and L2 =K2^2, then fill J2:L2 through row 9.
| Row | Expected K | Expected L |
|---|---|---|
| 2 | -6 | 36 |
| 3 | -2 | 4 |
| 4 | 2 | 4 |
| 5 | -2 | 4 |
| 6 | 6 | 36 |
| 7 | 10 | 100 |
| 8 | -10 | 100 |
| 9 | 2 | 4 |
In N3 enter =SUM(L2:L9); expect 288. Put 8 in N4, the number of observations in this complete fixture. Enter =SQRT(N3/(N4-1)) in N5. The independently expected result is approximately 6.4142698059, matching H2 before display rounding.
The fixed count of eight is a check for this specific dataset, not an automatic missing-data rule. If you change the observations, update the count and inspect the included numeric cells. Do not count the CSV’s record IDs, requested-position field or labels as extra measurements.
For a population comparison, enter =STDEV.P(A2:A9) in N7 and =N5*SQRT(7/8) in N8. Both targets are 6. Take the square root of the denominator ratio when converting standard deviations; multiplying by 7/8 alone would be wrong.
Check the mathematics and interpretation
Subtract the mean from each observation and square each difference. Add the squared differences and divide by n minus one. Take the square root for standard deviation; the answer returns to the original measurement units. This mathematical definition is used to check the numbers in the examples, independently of the spreadsheet software. Keep stored results at full available precision and round only the final presentation when a report requires it. The displayed expectations above are rounded where necessary; a different number of displayed decimal places is not by itself a calculation error.
Common mistakes and troubleshooting
There is only one observation. Sample variance needs a denominator greater than zero, so at least two numeric observations are required. A blank report is not evidence of zero variability. Validate the numeric count first.
The result differs from a population calculation. For the same n numeric observations, sample standard deviation is population standard deviation multiplied by the square root of n/(n minus one). A different denominator is not a rounding defect.
Unexpected text or errors are mixed into the input. Review the original cells rather than assuming every application ignores the same values. Do not replace a failed calculation with zero: zero has the specific meaning that included numeric observations do not vary.
ONLYOFFICE input rules and compatibility
The official entry says text, logical values and empty cells in a reference are ignored, while numeric zeros are included. It does not provide a complete direct-argument or error-value matrix. The examples use complete numeric observations rather than assuming undocumented coercion.
Use consistent definitions and units for the delivery times. Transit-only hours and total order-to-delivery hours are different variables. Keep summary rows and commentary outside the measured range.
The short reference does not enumerate every exact error label, single-value population case, extreme-precision boundary or workbook-conversion behavior. Sample calculations need at least two usable observations; population calculations need a nonempty population mathematically. This guide does not assign an undocumented native error token. English examples use commas between arguments; follow the separator accepted by your configured editor.
For the same statistical question in other programs, see STDEV.S in Microsoft Excel, STDEV.S in Google Sheets, STDEV.S in SoftMaker PlanMaker. These links identify corresponding measures, not a guarantee that names, mixed-data rules, error codes or file conversions are identical.
Legacy STDEV: read and check an existing workbook
STDEV is the older spelling covered here for sample standard deviation. The official legacy reference lists this syntax:
=STDEV(number1, [number2], ...)
number1 is required; subsequent arguments are optional, with up to 255 arguments documented. An omitted optional argument adds no observation; it is not a default zero. There is no sample/population switch: the function name selects the measure. Do not type the square brackets, and do not use an empty argument as a substitute for intentionally missing data.
How the older and newer names relate
In ONLYOFFICE’s pinned formula source, STDEV.S inherits the STDEV implementation. This explains why both names calculate the same statistical measure in that source revision. It is not evidence that every historical release or file format handles them identically. The source identifies newer dotted names separately for file-format handling, so this relationship is not a blanket promise about round-trip workbook compatibility. The first release introducing either name remains unestablished.
Three legacy checks using the existing practice data
Leave the original H2:H4 formulas and the input values intact. In P1 enter Legacy result; in Q1 enter Modern minus legacy. Enter:
| Cell | Formula | Independently expected result |
|---|---|---|
| P2 | =STDEV(A2:A9) |
6.414270 |
| P3 | =STDEV(2,4,6) |
2 |
| P4 | =STDEV(F2:F5) |
4.618802 |
| Q2 | =H2-P2 |
0 |
| Q3 | =H3-P3 |
0 |
| Q4 | =H4-P4 |
0 |
These are independently calculated expectations and source-supported equivalence checks, not captured ONLYOFFICE results. Format P2:P4 to six decimal places if desired; keep stored precision unchanged. The first example uses eight measurements, mean 20 and squared deviations totalling 288, with denominator n minus one. The second makes the denominator visible with a three-number fixture. The third uses the F2:F5 practice values above and retains real zeros.
A zero in Q2:Q4 supports equality for those exact numeric cases in your editor. It does not test mixed text, booleans, errors, extreme values, older versions or another spreadsheet application. Save a copy before changing inherited formulas, and compare the reopened file in each application that actually receives it.
Avoid mistaking STDEV for the population calculation
The short STDEV help description uses population wording that is easy to misread. The inspected implementation divides squared deviations by the numeric count minus one, and STDEV.S inherits it. For the 2, 4, 6 fixture, STDEV and STDEV.S therefore have the independently expected sample result 2; the population result is about 1.632993. Use STDEVP or STDEV.P when the measurements are the entire population being described. Do not infer the denominator from the absence of a suffix.
References, arrays and directly supplied values
The help documents that referenced text, logical values and empty cells are ignored, while numeric zeros count. The pinned source has separate branches: references collect numeric values, whereas array elements and direct arguments go through numeric conversion before numeric results are collected. Consequently, a range and an inline array are not interchangeable evidence for mixed-data behavior. This guide deliberately gives no universal conversion or error table for those branches without a full native check.
Evidence boundary
The legacy and dotted help pages were checked on October 19, 2026. Source inspection uses sdkjs commit 72b0421c0bbf9d01eed9cf14834ae47eb2df1b50. The source revision has not been mapped to your installed editor, and these examples have not been run in a native ONLYOFFICE session. Version introductions remain unknown. All worked numerical targets are mathematical checks, using the input-only CSV linked above.