Compatibility function

STDEVP function

Returns the standard deviation of an entire population (divides by n). Replaced by STDEV.P.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)

In every Excel versionWorks in Google Sheets

Older function. STDEVP still works, but for new workbooks use STDEV.P.

Syntax

STDEVP(number1, [number2], ...)
ArgumentWhat it means
number1RequiredA number, range or array covering the whole population.
number2, ...OptionalUp to 255 numbers or ranges in total.

Returns: The population standard deviation.

How STDEVP works

STDEVP measures spread when your numbers are the complete population, not a sample — every branch of a company, all twelve months of a closed year, all players on a team. It calculates √(Σ(x − mean)² / n).

Because it divides by n rather than n − 1, it is always a little smaller than STDEV on the same data; the difference shrinks as n grows. Text and logical values in ranges are ignored (STDEVPA counts them).

Compatibility note: STDEVP is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends STDEV.P. STDEV.P gives identical results.

Examples

1Spread across all branches

D2fx=STDEVP(B2:B6)
ABCD
1BranchStaff off sick
2North31.4142
3South5
4East4
5West6
6Central2

Result: 1.4142

These five branches are the whole company, so the population formula is right. The mean is 4 and the squared deviations add up to 10; 10/5 = 2, and √2 = 1.4142 (formatted to 4 decimals).

2Compare with the sample formula

D2fx=STDEV(B2:B6)-STDEVP(B2:B6)
ABCD
1BranchStaff off sick
2North30.1669
3South5
4East4
5West6
6Central2

Result: 0.1669

STDEV divides by 4 instead of 5 and returns 1.5811, so it is 0.1669 larger (formatted to 4 decimals). With small groups the choice matters.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#DIV/0!No numbers in the arguments.Check the range contents.

Tips

  • When in doubt, ask: "is there a bigger group these numbers stand for?" If yes, use STDEV / STDEV.S instead.

Questions

Should I still use STDEVP?

Only if the workbook must open in Excel 2007 or earlier. Otherwise use STDEV.P, which gives the same result and makes the intent clearer to the next person who reads the formula.

Will STDEVP stop working?

There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.

Google Sheets

STDEVP also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

STDEVP 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.

LanguageFunction name
CzechSMODCH
DanishSTDAFVP
FinnishKESKIHAJONTAP
FrenchECARTYPEP
GermanSTABWN
HungarianSZÓRÁSP
ItalianDEV.ST.POP
Norwegian (Bokmål)STDAVP
PolishODCH.STANDARD.POPUL
Portuguese (Brazil)DESVPADP
Portuguese (Portugal)DESVPADP
RussianСТАНДОТКЛОНП
SpanishDESVESTP
SwedishSTDAVP
TurkishSTDSAPMAS