Contact

VAR.S in ONLYOFFICE: Sample Variance and Squared Units

Statistical Intermediate ONLYOFFICE

Use VAR.S in ONLYOFFICE with three worked numeric examples, CSV practice data, interpretation checks, and software-specific documentation notes.

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 14, 2026, against the official function reference. Documentation and independently calculated examples; no native test of these cases.

Quick answer

Use VAR.S in ONLYOFFICE to estimate variance from a sample, dividing the sum of squared deviations by n minus one. The working example below describes delivery lead times; its result is measured in squared hours. The official reference supports the function’s identity and purpose.

Syntax and arguments

=VAR.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 sample variance when the available observations represent a larger population and your analysis needs squared deviations. The n minus one denominator distinguishes it from population variance. This distinction is about the question being asked, not the number of rows or how many decimal places you display.

Variance is in squared input units. For measurements recorded in minutes, the result is in minutes squared, not minutes. Standard deviation is often easier to explain to a non-specialist because its units match the original data. Neither statistic alone establishes causation, a prediction interval or whether a particular observation should be discarded.

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 VAR.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:

=VAR.S(A2:A9)

Expected result: 41.142857 (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); the result is a variance in squared measurement units.

Example 2: Check the denominator with three known numbers

Enter in H3:

=VAR.S(2,4,6)

Expected result: 4.

The mean is 4 and the squared deviations are 4, 0 and 4, for a total of 8. The sample denominator is 2. Keep the fractional result during later calculations rather than rounding the input values.

Example 3: Check squared units when values are rescaled

For this check, use F2:F5 containing 0, 0, 80, 80, in that order. These values are included in the practice file.

Enter in H4:

=VAR.S(F2:F5)

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

These four observations have mean 40 and squared deviations totalling 6400. They are ten times the numbers 0, 0, 8, 8, so their variance is one hundred times as large. Both zeros still count as observations.

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 =N3/(N4-1) in N5. The independently expected result is approximately 41.1428571429, 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 the population comparison, enter =VAR.P(A2:A9) in N7 and =N5*7/8 in N8. Both targets are 36. The sample-to-population difference comes entirely from dividing the same squared-deviation sum by 7 or 8.

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. Do not take a square root when reporting variance; its units remain squared. 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 output looks much larger than the original measurements. Variance is expressed in squared units. Compare it with other variances using the same unit scale, not directly with an average expressed in the original units.

The sample has fewer than two numeric observations. The n minus one denominator is then unusable. Show that the data is insufficient rather than quietly substituting zero.

A very different value appears after an import. Check units, included records and numeric storage before changing the formula. A mixture of individual observations, totals and text-coded numbers is not a consistent statistical input. Do not average subgroup variances as though that automatically gives the combined variance.

ONLYOFFICE input rules and compatibility

The official entry distinguishes array inputs from direct arguments. It says empty, logical, text and error entries in an array are ignored, while directly supplied logical values and text representations of numbers are interpreted numerically. These are documentation statements, not new native coercion tests. Keep source errors visible and investigate them rather than relying on an ignored error as a cleanup strategy.

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. The sample denominator requires at least two usable observations 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 VAR.S in Microsoft Excel, VAR.S in Google Sheets, VAR.S in SoftMaker PlanMaker. These links identify corresponding measures, not a guarantee that names, mixed-data rules, error codes or file conversions are identical.

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