Calculates the sample standard deviation of the values in a data set created from a condition.
Syntax:
DSTD( range, condition )
Returns the sample standard deviation of all the values in the range for which the corresponding condition is satisfied.
Formula:
DSTD, s = √ ( ( n⋅i ∑1n (xi2) − (i ∑1n xi)2 ) ∕ (n⋅(n − 1)) )
where n is the number of selected values and xi is the i‑th value from the selection.
This is the square root of the sample variance of the selected values.
Example:
DSTD(A1:A15, B1:B15>0)
returns the standard deviation of the contents of the cells in the range A1:A15
whose equivalent in the range B1:B15
is greater than zero.
See DAVG for more examples of how to use the condition to control which cells are included.