Excel DSTDEVP Function
The Excel DSTDEVP function returns the standard deviation of a population by using the numbers from the entire database that match the given criteria you specify.
Just like the DSTDEV function, the DSTDEVP function is also a built-in database function in Excel. The only difference between the two functions is their calculation purposes.
- The DSTDEVP function returns the standard deviation of the entire population.
- The DSTDEV function returns the standard deviation of a sample.
The DSTDEVP function returns the standard deviation of a population based on the values extracted from the entire population data matching the given criteria.
- The DSTDEVP function is used on a population. If data only represent a sample, use the DSTDEV function.
- The field argument can be a column header by its name in quotation marks, the number that indicates the position of a specific column in the database, and the cell reference of a column header.
- The criteria argument can be any range of cells. But it must include at least one column label and at least one cell below the column label to specify the condition. Multi-row criteria are also accepted.
- A variety of expressions such as wildcards can be applied in the criteria argument. Here are some examples.
- The purpose of the criteria argument is to filter the database and specify which records should be calculated.
- The column headers in the criteria range must be included in the database range.
- In theory, the criteria range can be located anywhere on the worksheet. But it is recommended not to be placed under the data list, in case more data need to be added.
As the below screenshot shows, the data represent the entire population. How can we calculate the standard deviation of the population? Please do as follows.
Copy the formula below into cell F7 and press the Enter key to get the result.
=DSTDEVP (B3:D11, 3, F3:G4)
- In the above formula, we use the number that indicates the position of the sales column in the database range as the field argument, which is 3 since the sales column is at the 3rd position.
- We can change the value in the field argument to the column header name enclosed in quotation marks. In this case, the input value becomes “sales” in the field argument. And the formula becomes:
=DSTDEVP (B3:D11, "sales" , F3:G4)
- The field argument can also be entered as a cell reference, which is D3 in this case. So the formula changes to:
=DSTDEVP (B3:D11, D3 , F3:G4)
- If no rows match the criteria, a #DIV/0! Error will be returned.
- The syntax arguments of the DSTDEVP and DSTDEV functions are the same. As the screenshots below show, we used the same data, applied the same criteria, and returned the results from the same column. But the two results are different. The reason is that the population standard deviation is calculated differently from the sample standard deviation.
Excel DSTDEV Function
The DSTDEV function returns the estimated value of the standard deviation of a population based on a sample.