Formualizer Docs

VAR.S

Estimates sample variance using n-1 in the denominator.

VAR.S is the squared counterpart of STDEV.S for sample-based variability.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=VAR.S(number1, [number2], ...)

Arguments

ArgumentTypeRequiredDefault
number1number (range)Required—
number2number (range)Optional—

Accepts a variable number of arguments. Minimum: 1.

Remarks

  • Requires at least two numeric values.
  • Non-numeric values in referenced ranges are ignored.

Error cases

  • Returns #DIV/0! when fewer than two numeric values are provided.

Examples

Find the sample variance of 4, 8 and 12.

Formula =VAR.S(4,8,12)

Expected result 16

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Pass one three-element array to compute the sample variance.

Formula =VAR.S({4,8,12})

Expected result 16

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Use 4 and 12, the minimum two observations for the sample variance.

Formula =VAR.S(4,12)

Expected result 32

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A lone observation cannot supply the denominator for the sample variance.

Formula =VAR.S(4)

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Sample variance from scalar arguments

Formula =VAR.S(2,4,6)

Expected result 4

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Sample variance from a range

Formula =VAR.S(A1:A3)

Input cells
A
11
22
33

Expected result 1

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Why does VAR.S return #DIV/0!?

Sample variance requires at least two numeric observations.

Implementation

Engine source

On this page