Contact

VAR.S in Google Sheets: Sample Variance and Squared Units

Statistical Intermediate Google Sheets

Use VAR.S in Google Sheets 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: Introduction version not established by the official history reviewed.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Name relationship: Google’s catalogue lists VAR.S as an alias/reference to VAR; the linked help may use that canonical name.
  • Checked: October 14, 2026; official VAR.S reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Quick answer

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

This guide separates documentation review from application testing. The expected numbers are independently calculated, not screenshots or results captured from Google Sheets.

Syntax and arguments

VAR.S(value1, [value2, ...])

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. Omit the square brackets shown in the syntax notation when entering a formula. The primary numeric examples avoid relying on text or logical-value conversion; separately documented type boundaries are explained below.

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 shared support log with one row per resolved ticket provides the scenario. Enter the following numeric observations into A2:A8, one per row, with a header in A1. Use a spare result cell outside the input range.

Cell Minutes
A2 8
A3 12
A4 10
A5 9
A6 12
A7 15
A8 7

Download the Google Sheets 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. Blank spacer columns place the requested position in D2 and any additional test data in column F. Keep observations numeric rather than importing them as text.

Three worked examples

Example 1: Measure spread in the working register

=VAR.S(A2:A8)

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

The numeric count is 7, the mean is 10.428571, and the sum of squared deviations is 45.714286. Divide by 6 (n minus one); the result is a variance in squared measurement units.

Example 2: Check the denominator with three known numbers

=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.

=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 example: pooled observations are not an average of group variances

=VAR.S(8,12)
=VAR.S(10,14)
=VAR.S(8,12,10,14)

Expected results are 8, 8 and 20/3, approximately 6.666667 for the combined sample. The group means are 10 and 12; the combined mean is 11. Squared deviations in the combined sample total 20, divided by n−1=3.

Averaging the two variances gives 8, which is not the variance of these four combined observations. Group sizes, group means and within-group deviations all matter when reconstructing a combined statistic.

Advanced example: repeating a sample changes the correction

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

Expected results are 4 and 3.2. The original squared-deviation sum is 8 and denominator 2. The duplicated dataset has squared-deviation sum 16 and denominator 5, not 4.

The relative frequency distribution is unchanged, but the sample-size correction differs. Check duplicated records before treating an apparently larger sample as new information.

Advanced example: verify scale and translation separately

=VAR.S(12,14,16)
=VAR.S(-6,-12,-18)

Expected results are 4 and 36. Adding 10 to each original 2,4,6 value leaves deviations unchanged. Multiplying all three by −3 multiplies variance by 9, even though it reverses their order.

The matching sample standard deviation in the second case is 6, not −6. Variance is nonnegative for valid real numeric observations, and its square root returns to the original transformed units.

Advanced example: reconcile the original log

For the seven original ticket durations, sample variance is 160/21, approximately 7.619048. The matching population variance can be recovered with:

=VAR.S(A2:A8)*(COUNT(A2:A8)-1)/COUNT(A2:A8)

Expected result: 320/49, approximately 6.530612. Both statistics describe the same numeric values; their different denominators answer different questions.

Keep the range identical in the variance and count expressions. A header, subtotal or omitted row can change the statistical meaning even when the displayed result looks plausible.

Minimum data, text and error boundaries in Sheets

Google’s VAR reference explicitly documents #DIV/0! for fewer than two supplied values. A numeric =VAR.S(5) therefore has that documentation-based error expectation. =VAR.S(5,5) has expected result 0 instead.

For a separately checked numeric input range K2:K10, an explicit reporting policy can use:

=IF(COUNT(K2:K10)<2,"Need two numbers",VAR.S(K2:K10))

With only 5 it gives the label; with 5,5 it gives zero; with 2,4,6 it gives 4. This count guard is not a substitute for inspecting errors, measurement units or inclusion criteria.

The source says an all-text set of value arguments causes an error, but does not settle every mixed number/text or direct/reference case. Logical inputs, numeric text, formula-empty values and exact mixed-error codes remain held here. No Excel coercion rule is imported. Google also documents support beyond the nominal 30 arguments; no maximum-size benchmark was performed.

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.

Google Sheets notes and compatibility

Google lists VAR.S as an alias of VAR in its function catalogue; the dedicated help page uses the older name. The dotted spelling is used in the examples so the name matches the Excel comparison guide.

The support-log example uses ordinary worksheet cells, not a BigQuery data column. Some Google help pages also show Connected Sheets syntax; that is not the syntax being demonstrated here. A ticket’s duration is entered as a number of minutes, not as a time-of-day text label.

For a shared log, agree on whether reopened tickets form new observations and whether each row represents one ticket or one agent action. Keep that decision consistent before comparing reporting periods. When collaborators paste data, inspect a small sample of numeric cells and confirm the selected range still ends at the intended row.

The examples use English function names and commas. Adjust the argument separator to the file’s locale as needed, while keeping decimal values and cell references intact. No import/export or native Google Sheets execution was performed for this guide.

For the same statistical question in other programs, see VAR.S in Microsoft Excel, VAR.S in ONLYOFFICE, 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 Google Sheets function library for the other published guides.

Editorial verification: Complete article and dedicated Google reference reviewed on October 14, 2026. All three original numeric examples, added arithmetic and rank models, original CSV inputs and related links were checked independently. Exact approved availability/history text is retained. Documentation-based errors are distinguished from observed results. No native Google Sheets execution, maximum-size benchmark or round-trip workbook certification was performed. Input types and errors not explicitly established by the cited function source remain held.