DSTDEVP function
Calculates the standard deviation of a column for the records matching the criteria, treating them as the entire population.
Available in All versions of Excel, including Microsoft 365 and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
DSTDEVP(database, field, criteria)| Argument | What it means | |
|---|---|---|
database | Required | The list including its header row. |
field | Required | The numeric column to analyse. |
criteria | Required | The criteria range. |
Returns: The population standard deviation (divides by n) of the matching values.
How DSTDEVP works
DSTDEVP measures the spread of values for the records that match your criteria, on the assumption that those records are the whole group you are interested in — not a sample. Every employee in a department, every invoice of a month, every machine on a line: when nothing is missing, the population formula is the right one. It divides by n, like STDEV.P.
Because it divides by n instead of n − 1, DSTDEVP always returns a slightly smaller number than DSTDEV on the same data, and the difference shrinks as the number of matching records grows. With only one matching record the result is 0 (no spread), whereas the sample version returns #DIV/0!.
Examples
1Salary spread across the whole Sales team
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Dept | Name | Years | Salary | ||
| 2 | Sales | Ana | 3 | 42000 | 3274.48 | |
| 3 | IT | Ben | 7 | 58000 | ||
| 4 | Sales | Carla | 5 | 46500 | ||
| 5 | IT | Dev | 2 | 49000 | ||
| 6 | HR | Eli | 9 | 51000 | ||
| 7 | Sales | Fay | 1 | 38500 | ||
| 8 | ||||||
| 9 | Dept | |||||
| 10 | Sales |
Result: 3274.48
Treating the three Sales salaries as the entire team, the population standard deviation is 3274.48 (two decimals) — smaller than the 4010.40 that DSTDEV returns for the same records.
2Everyone with at least 3 years
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Dept | Name | Years | Salary | ||
| 2 | Sales | Ana | 3 | 42000 | 5909.47 | |
| 3 | IT | Ben | 7 | 58000 | ||
| 4 | Sales | Carla | 5 | 46500 | ||
| 5 | IT | Dev | 2 | 49000 | ||
| 6 | HR | Eli | 9 | 51000 | ||
| 7 | Sales | Fay | 1 | 38500 | ||
| 8 | ||||||
| 9 | Years | |||||
| 10 | >=3 |
Result: 5909.47
Field 4 is Salary. The four qualifying salaries give a population standard deviation of 5909.47.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | No matching numeric values. | Check the criteria. |
#VALUE! | The field name is not in the list. | Use the exact header or a column number. |
Tips
- DSTDEVP is the square root of DVARP on the same data.
- For the same calculation with conditions inside the formula (Microsoft 365), use
=STDEV.P(FILTER(D2:D7, A2:A7="Sales")).
Google Sheets
DSTDEVP also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
DSTDEVP in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | DSMODCH |
| Danish | DSTDAFVP |
| Dutch | DBSTDEVP |
| Finnish | TKESKIHAJONTAP |
| French | BDECARTYPEP |
| German | DBSTDABWN |
| Hungarian | AB.SZÓRÁS2 |
| Italian | DB.DEV.ST.POP |
| Norwegian (Bokmål) | DSTDAVP |
| Polish | BD.ODCH.STANDARD.POPUL |
| Portuguese (Brazil) | BDDESVPA |
| Portuguese (Portugal) | BDDESVPADP |
| Russian | ДСТАНДОТКЛП |
| Spanish | BDDESVESTP |
| Swedish | DSTDAVP |
| Turkish | VSEÇSTDSAPMAS |