This function returns variance based on a sample, which uses only numeric values.
VAR.S(value1,value2,...)
VAR.S(array)
VAR.S(array1,array2,...)
Each argument can be a double-precision floating-point value, an integer value, or an array (cell range) of these. Up to 255 arguments may be included. You can use a single array (cell range) instead of a list of values. You can use multiple arrays (cell ranges) as well.
The variance returns how spread out a set of data is.
Logical values and text representations of numbers that are typed into the list of arguments are counted. If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, error values, logical values, or text in the array or reference are ignored.
This function uses the following equation to calculate the variance,
where x is the sample mean AVERAGE(number1,number2,…) and n is the number of values.
This function differs from VARA, which accepts logical or text values as well as numeric values.
Accepts numeric data for all arguments. Returns numeric data.
VAR.S(B3,C4,B2,D10,E5)
VAR.S(A1:A9)
VAR.S(R1C2,100,R2C5,102)
VAR.S(98,85,76,87,92,89,90) gives the result 45.80952381