DSTDEVP Function
Population standard deviation of a database column for rows that meet the criteria.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| database | The range containing the database, including the header row as the first row. | Required |
| field | The column to analyze, given as the column label in quotes (e.g. "Yield") or its 1-based column index. | Required |
| criteria | The range with a header row matching database column names and one or more condition rows; only matching records are analyzed. | Required |
Basic Example
Population standard deviation of Yield for apple trees taller than 10
=DSTDEVP(A1:E7, "Yield", A9:B10)The two matching rows have Yield 14 and 10. The mean is 12, squared deviations are 4 and 4 (sum 8), divided by n = 2 gives variance 4, and the square root is 2.
Advanced Examples
Example 1: Compare with sample version
Same data, DSTDEV insteadDSTDEV divides by n-1, so it is larger for the same two points.
=DSTDEV(A1:E7, "Yield", A9:B10)Example 2: Population over all apple trees
Criteria Tree=Apple across three rowsCompute the population standard deviation over three apple yields.
=DSTDEVP(A1:E7, "Yield", A9:A10)How DSTDEVP Works
DSTDEVP filters the database to rows matching the criteria, then computes the population standard deviation of the numeric values in the specified field: the square root of the population variance, where the sum of squared deviations from the mean is divided by n (the number of matching records). Use DSTDEVP when the matching records constitute the whole population rather than a sample.
Important Notes & Limitations
Assumes the matching records are the whole population; use DSTDEV for a sample.
Needs at least one matching numeric value; with none it returns #DIV/0!.
Criteria header labels must exactly match database headers.
Common Errors & Fixes
#DIV/0!No records matched, so there are no values to compute a deviation from.Fix: Verify the criteria so at least one record matches.
#VALUE!The field was an unquoted column name.Fix: Wrap the field name in quotes, e.g. "Yield", or use the column index.
Download Practice File
DSTDEVP
dstdevpPractice DSTDEVP with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the DSTDEVP function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps