WorksheetFunction.Var_S (Excel)

Estimates variance based on a sample.

Var_S assumes that its arguments are a sample of the population. If your data represents the entire population, compute the variance by using Var_P. Arguments can either be numbers or names, arrays, or references that contain numbers. Logical values and text representations of numbers that you type directly 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, logical values, text, or error values in the array or reference are ignored. Arguments that are error values or text that cannot be translated into numbers cause errors. Var_S uses the following formula, where x is the sample mean AVERAGE(number1,number2,...) and n is the sample size:

Var_S (Arg1, Arg2, ..., Arg30)

Dim dblVar_S As Double
dblVar_S = WorksheetFunction.Var_S(Arg1:=)


Arg1, Arg2, ..., Arg30