The VAR.S function in Google Sheets is a statistical function used to calculate the variance based on a sample data set. It measures the dispersion or spread of data points from the average. Learn how to use this function effectively with our comprehensive guide.
Parameters
value1: The first value or range containing the sample data.value2, ...: [Optional] Additional values or ranges containing the sample data.
Step-by-Step Tutorial
-
Using
VAR.Swith individual numbers:- Example:
=VAR.S(5, 8, 10, 12, 15) - Result: The variance will be calculated based on the provided data points.
- Example:
-
Using
VAR.Swith a range of cells:- Example: If cells
A1:A5contain the data5, 8, 10, 12, 15, then=VAR.S(A1:A5)will calculate the variance.
- Example: If cells
Working with a Single Value, a List, and a Range
VAR.S accepts numbers one at a time, as a comma-separated list, or as a range — mix and match freely, as long as at least two numeric values are supplied.
- Single value:
=VAR.S(A1)— not meaningful on its own;VAR.Sneeds at least two data points and returns a#DIV/0!error with just one. - List of values:
=VAR.S(A1, A2, A3)— treats each cell as one data point in the sample. - Range:
=VAR.S(A1:A10)— treats every cell in the range as part of the sample. - Mixed:
=VAR.S(A1, A3:A6, 10)— combine single cells, ranges, and literal numbers into one sample.
Use Cases and Scenarios
- Financial Analysis: Measure the volatility of stock prices.
- Quality Control: Assess the variability in product dimensions.
- Educational Research: Analyze the spread of test scores.
Related Functions
VAR.P: Calculate the variance based on the entire population.