ID EN
#Database

DSTDEVP

Excel Functions

Get standard deviation of population in matching records

Syntax

EXCEL
=DSTDEVP(database, field, criteria)

Arguments

Parameter Description
database Database range including headers.
field Field name or index to count.
criteria Criteria range including headers.

Return Value

The calculated standard deviation

Details

The Excel DSTDEVP function gets the standard deviation of data that represents an entire population, extracted from records matching criteria. Basically, DSTDEVP calculates standard deviation with a subset of data, like a "standard deviation IF" formula. The database argument is a range of cells that includes field headers, field is the name or index of the field to query, and criteria is a range of cells with headers that match those in database. Using the example above, you can get the standard deviation of heights for the group "Fox" with either of these formulas: The standard deviation for all heights in C8:C13 is calculated in F5 with the STDEV.P function: The criteria can include a variety of expressions, including some wildcards. The table below shows some examples:

Examples

Example 1

Using the example above, you can get the standard deviation of heights for the group "Fox" with either of these formulas:

EXCEL
=DSTDEVP(B7:C13,"Height",B4:C5) // field by name
=DSTDEVP(B7:C13,2,B4:C5) // field by index
Example 2

The standard deviation for all heights in C8:C13 is calculated in F5 with the STDEV.P function:

EXCEL
=STDEV.P(C8:C13)

See Also

DCOUNT DCOUNTA DMAX DVARP DVAR DSTDEV