Contact

VAR.S Function in LibreOffice Calc — Tested Examples

Statistical Beginner LibreOffice Calc

An explanation of LibreOffice Calc VAR.S, including tested formulas, examples, expected results and common mistakes.

Verification status: Selected examples were executed in LibreOffice Calc 25.2.3.2. This does not establish that every formula and edge case was tested. How formula examples are checked

Availability and version history

  • Introduced: LibreOffice 4.2.
  • Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

Calculates the variance based on a sample. The observations 2,4,6 have sample mean 4 and sample variance 4. Here nāˆ’1 is the denominator.

Syntax and arguments

=VAR.S(Number1 [; Number2; ...])

Square brackets mark optional arguments; do not type the brackets or ellipsis. Separate arguments with semicolons (;).

Argument Explanation
Number1 First number or cell range to include.
Number2; ... Optional additional numbers or ranges; the Help documents up to 255 arguments.

A single range can supply multiple observations for the sample variance. Supply at least two numeric observations.

Official VAR.S syntax and arguments.

Worked examples

Example 1: Calculate sample variance

=VAR.S(2;4;6)

Expected result: 4. This value was returned in the LibreOffice Calc 25.2 test.

Example 2: Sample variance of 1, 2, 3

=VAR.S(1;2;3)

Expected result: 1. This value was returned in the LibreOffice Calc 25.2 test.

How to interpret the result

The observations 2,4,6 have sample mean 4 and sample variance 4. Here nāˆ’1 is the denominator.

Mistakes and troubleshooting

  • Check inputs and assumptions: Use VAR.P when the observations represent the complete population, not a statistical sample.
  • Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
  • Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.

COUNT Ā· AVERAGE Ā· SUM

Tested version and primary reference

2 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.