Function Math Statistics Class

StandardDeviation

Standard deviation of numeric arguments.

Signature (Visual Basic / VBA)

Public Function StandardDeviation( _
    ParamArray vValues() As Variant _
    ) As Variant

Code Example

    StandardDeviation(12, 34, 56) = 22
    StandardDeviation(SampleData) = 23.7393977642901

Parameters

Parameter Description
vValues The values that are to be processed. Can be numbers, one-dimensional numeric arrays, one-dimensional Variant arrays, one-dimensional Variant arrays with embedded arrays, or any combination of these. The current setting of the StatVarType Property determines which numeric data types are recognized by this function.

Return Value

Function returns the standard deviation of the numeric values. Function returns Null if there are fewer than two numeric values.