The DSTDEVP function in Excel is a powerful statistical tool used to calculate the standard deviation of a population represented by a specified database. Unlike sample-based standard deviation functions, DSTDEVP calculates the measure of spread for the complete dataset. This function is especially useful in data analysis when assessing the variability of entire populations rather than just samples.
Syntax
DSTDEVP(database, field, criteria)
- database: The range of cells that makes up the entire database.
- field: Indicates which column in the database is used to calculate the standard deviation. It can be specified by the column label enclosed in quotes or by the column number.
- criteria: The conditions that determine which records within the database are counted in the calculation.
Example #1
=DSTDEVP(A1:C10, "Sales", A1:A10="East")
This function calculates the standard deviation of sales figures in the range A1:C10 for all records where the region is ‘East’. Suppose the average sales for the East region is $1,200; thus, the result would be 150.
Example #2
=DSTDEVP(A1:C10, 2, C1:C10="Yes")
This function computes the standard deviation of the second column in range A1:C10, only considering rows where the third column has ‘Yes’. If the result of this calculation is 300, this reflects lower variability in selected entries.
Example #3
=DSTDEVP(A1:C10, "Profit", B1:B10>50)
Here, we calculate the standard deviation of profits in the database where field B’s value is greater than 50. Should this yield a result of 50, it indicates variability among high-profit entries.
Error handling
- DIV/0! – This occurs when there are no records that meet the specified criteria, resulting in zero entries to calculate the standard deviation.
- NAME? – This error arises when the function name is misspelled or not recognized by Excel.
- VALUE! – This error indicates that an incorrect type of argument was passed; for example, a non-numeric value in the ‘field’ argument.