Contact

STDEV.P in ONLYOFFICE: Population Standard Deviation

Statistical Intermediate ONLYOFFICE

Use STDEV.P and legacy STDEVP 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.P in ONLYOFFICE to calculate standard deviation for the whole population you have chosen to describe, using a denominator of n. 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 STDEVP. 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.P(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 population measure when the range contains every observation in the population defined by your question. For example, all completed tickets in a fixed reporting period can form a complete population for describing that period. The same records can still be a sample when the question concerns future periods.

The result is expressed in the original measurement units. It is a measure of spread, not a tolerance limit or a forecast. A high result may be driven by a few unusual records or by several different groups being mixed together. Review the data rather than treating one dispersion number as an explanation of why the process varies.

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.P 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.P(A2:A9)

Expected result: 6.

The numeric count is 8, the mean is 20, and the sum of squared deviations is 288. Divide by 8 (n), 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.P(2,4,6)

Expected result: 1.632993 (displayed to six decimal places).

The mean is 4 and the squared deviations are 4, 0 and 4, for a total of 8. The population denominator is 3, 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.P(F2:F5)

Expected result: 4.

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)) in N5. The independently expected result is approximately 6, 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 sample comparison, enter =STDEV.S(A2:A9) in N7 and =N5*SQRT(8/7) in N8. Both targets are approximately 6.4142698059. The square-root adjustment preserves the standard deviation’s original measurement units.

Check the mathematics and interpretation

Subtract the mean from each observation and square each difference. Add the squared differences and divide by n. 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

The population was not defined. Write down which records the range is meant to contain and which period they cover. A result can be mathematically correct while describing the wrong group.

The result differs from a sample calculation. The population calculation divides squared deviations by n, rather than n minus one. For the same nonconstant numeric data it is smaller than the sample standard deviation.

A zero or empty result is overinterpreted. Repeated equal numeric observations have zero spread; missing observations do not establish that fact. Count usable observations and review text, missing cells and errors before interpreting the output. Single-observation handling is deliberately not used in these examples.

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.P in Microsoft Excel, STDEV.P in Google Sheets, STDEV.P in SoftMaker PlanMaker. These links identify corresponding measures, not a guarantee that names, mixed-data rules, error codes or file conversions are identical.

Legacy STDEVP: read and check an existing workbook

STDEVP is the older spelling covered here for population standard deviation. The official legacy reference lists this syntax:

=STDEVP(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.P inherits the STDEVP 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 =STDEVP(A2:A9) 6
P3 =STDEVP(2,4,6) 1.632993
P4 =STDEVP(F2:F5) 4
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. 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.

Mixed data requires an explicit check

The STDEV.P help documents ignored text, logical values and empty cells in references, with numeric zeros included. The pinned shared implementation collects numeric values from references and arrays and returns encountered errors. Its direct-argument branch handles booleans by numeric conversion and puts a numeric zero into the input list for a string argument, including a numeric-looking string. That source observation is narrower than a verified rule for every installed editor: it is a reason to keep imported measurements numeric and to test mixed-data cases before replacing formulas.

For a concrete diagnostic, try STDEVP(2,“4”,6) and STDEV.P(2,“4”,6) in a disposable sheet. If the string is treated as zero as in the inspected source branch, the mathematical target for 2, 0, 6 is approximately 2.494438, rather than 1.632993 for 2, 4, 6. These are conditional, independently calculated targets, not native test results. Converting stored measurements into real numbers is safer than relying on coercion.

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.

MEDIAN, LARGE, SMALL, RANK.EQ, STDEV.S, VAR.S, VAR.P. Browse the ONLYOFFICE function library for the other published guides.