ONLYOFFICE STDEVA: Sample Spread, Text and Blank-Cell Differences
Reproduce ten ONLYOFFICE STDEVA desktop cases, distinguish ordinary and numeric text, and reconcile a documented text-handling difference with sample variance.
Verification status: Ten scalar mixed-input cases checked in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64; additional worksheet and illustration results independently calculated. Docs, mobile and other builds untested. How formula examples are checked
STDEVA calculates sample standard deviation, but its mixed-type behavior needs special care. In ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64, the tested ordinary text pending was omitted, while the numeric text 2 was converted to two. This differs from the help page’s general statement that text counts as zero.
For numeric 4 and 6, =STDEVA(4,6) is approximately 1.4142135624. The complete tests below show why text, an empty cell and a formula returning empty text must not be treated as interchangeable.
Availability and version history
- Introduced: The first introduction release and date are not established by the checked sources.
- Availability: Currently documented in ONLYOFFICE’s rolling Spreadsheet Editor help; no final supported-version endpoint is established.
- Scope: Ten scalar cases were executed in Desktop Editors Community 10.0.0.169 on Linux x64. Docs, other desktop builds and mobile clients were not tested.
- Checked: October 14, 2026, against the official STDEVA reference, source code and saved native results. Additional worksheet and illustration reconstructions were independently calculated.
Syntax
STDEVA(value1, [value2], ...)
The official entry documents one leading value argument and optional further arguments, up to 255 values. A range can supply multiple observations. This argument limit is not a claim that a range is limited to 255 cells. Use the separator accepted by your spreadsheet locale; the formulas below follow the English help’s comma notation.
A documented-versus-observed difference
The current help says that text is treated as zero. However, the tested desktop build returned the same result for STDEVA(4,6,"pending") as for the two numeric values alone. Its ordinary-text range case did the same.
The pinned official implementation converts candidate values to numbers and includes successful conversions, then divides squared deviations by n − 1 before taking a square root. That branch explains the numeric-text/ordinary-text distinction, but the source revision is not assumed to identify every shipped application’s code.
Use the explicit build-scoped observations below for these cases. The source and test do not establish the behavior of every Docs server, older Desktop version, mobile app or text-number format. The help wording and runtime difference remain visible rather than silently choosing a universal rule.
Reproduce the ten build-scoped cases
Create a sheet named TypedDispersion, leaving space through column J and row 16. Enter the following inputs in column B. Labels can go in A; put outputs in G so no formula overwrites an input.
| Cell | Entry | Intended stored type |
|---|---|---|
| B6 | 4 |
Number |
| B7 | 6 |
Number |
| B8 | pending |
Text |
| B9 | =TRUE() |
Logical TRUE |
| B10 | =FALSE() |
Logical FALSE |
| B11 | Leave genuinely empty | No stored value |
| B12 | Enter 2 after setting the cell to Text |
Text containing 2 |
| B13 | 0 |
Number |
| B14 | ="" |
Formula returning empty text |
Do not enter quote characters around the text in B8 or B12. If B12 is converted to a numeric cell during import, it is no longer the same test. The native fixture’s input types were checked from the saved workbook, not inferred from appearance.
The following results were observed after an explicit workbook recalculation in Desktop Editors Community 10.0.0.169, Linux x64 and verified in its saved output. Displayed decimals are rounded to ten places.
| Output cell | Formula | Observed result | Comparison |
|---|---|---|---|
| G6 | =STDEVA(B6:B7) |
1.4142135624 | Numeric baseline |
| G7 | =STDEVA(B6:B8) |
1.4142135624 | Ordinary text in a range |
| G8 | =STDEVA(B6:B10) |
2.7537852736 | Text and Boolean values |
| G9 | =STDEVA(B6:B7,B11) |
3.0550504633 | Explicit empty reference |
| G10 | =STDEVA(B6:B7,B12) |
2.0000000000 | Numeric text reference |
| G11 | =STDEVA(4,6,"2") |
2.0000000000 | Numeric text literal |
| G12 | =STDEVA(4,6,"pending") |
1.4142135624 | Ordinary text literal |
| G13 | =STDEVA(B6:B7,B13) |
3.0550504633 | Actual numeric zero |
| G14 | =STDEVA(B6:B7,B14) |
1.4142135624 | Formula-produced empty text |
| G15 | =STDEVA(B6:B11) |
2.7537852736 | Mixed range including a blank |
G7 and G12 show ordinary text being omitted. G10 and G11 instead use numeric two. G9 includes the explicitly referenced blank as zero, but G15 agrees with G8 when the blank is merely inside the mixed range. G14 omits the empty-string formula result. These distinctions are specific observed cases, not a rule for every blank representation or text parser.
Reconstruct the mixed-range result and compare VARA carefully
For G8, the observed included values are 4,6,1,0: ordinary text was omitted, and the Booleans supplied one and zero. Their mean is 2.75, and their squared deviations are 1.5625,10.5625,3.0625,7.5625. The total 22.75 divided by three gives sample variance 7.5833333333; its square root is 2.7537852736.
Create MappedSample, putting 4,6,1,0 in A2:A5. In C2 enter =STDEVA(A2:A5) for approximately 2.7537852736, C3 =VARA(A2:A5) for 7.5833333333, and C4 =C2^2-C3 for an exact mathematical target of 0. These additional formulas are independently calculated checks, not additional native executions.
On the original TypedDispersion sheet, =VARA(B6:B10) in J2 instead gives the native-tested result 7.2, because VARA includes pending as another zero. A function-name relationship cannot compensate for different included records.
For a unit/origin check on MappedSample, put =10-2*A2 in B2 and fill to B5. The transformed data is 2,-2,8,10. Its mean is 4.5, sample variance 30.3333333333, and sample standard deviation 5.5075705473, twice the original. Use =STDEVA(B2:B5) in C6. The negative multiplier reverses order; the magnitude of the scale factor determines standard-deviation scaling.
Reconstruct the official illustration
On a separate VendorGrid sheet, enter this 4-by-4 grid in A1:D4. Numeric entries are numbers, text is ordinary text, and the TRUE/FALSE entries are formulas producing logical values.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | 1 |
0 |
0 |
0 |
| 2 | text |
1 |
0 |
0 |
| 3 | 2 |
3 |
=TRUE() |
=FALSE() |
| 4 | 6 |
8 |
10 |
12 |
In F2 enter =STDEVA(A1:D4). The independently reconstructed result is approximately 4.0614330101, matching the precision shown in the vendor illustration. This entire illustration was not part of the native ten-case fixture. Its displayed values do not, on their own, prove the original screenshot workbook’s stored types.
Treating the visible ordinary text as omitted gives 15 included observations and approximately 4.0614330101. Treating it as an included zero would instead give approximately 3.9916579680. The illustration’s displayed answer therefore also supports the omission reconstruction, alongside the direct native cases, despite the prose’s text-zero wording.
Limits and related functions
The examples do not establish exact errors for empty datasets, error cells, huge magnitudes or malformed arguments. A sample needs a usable n − 1 denominator mathematically; the one-value error behavior remains untested.
Use STDEV.S for its separately documented numeric-oriented contract. STDEVPA calculates population standard deviation, while VARA calculates sample variance. Compare the included observations before relying on a squared-value identity.