Practice free

STDEVPA function

STDEVPA returns the population standard deviation while counting text and logicals, with TRUE as 1 and FALSE and text in ranges as 0. STDEV.P is usually what you want instead.

Example

Read it as a sentence: work out the population standard deviation of A1:A8, counting any text and logical values too, which gives 2.

Practice this in the app

Syntax

STDEVPA(value1, [value2], ...)

Arguments in [square brackets] are optional.

value1 (required)
First value or range.
value2 (optional)
More values or ranges.

Returns: The population standard deviation counting text and logicals.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=STDEVPA({2,4,4,4,5,5,7,9}) 2 Array constant
=STDEVPA(10,"20",TRUE) 7.760297818 Direct args: number, text-number, TRUE
=STDEVPA(5) 0 Single number
=STDEVPA({1,"2",TRUE,3}) 1 Array with text and boolean
=STDEVPA(Data!A1:A8) 2 Range of numbers
=STDEVPA(Data!B1:B8) 15.41666207 Mixed range: num, text-number, TRUE, blank, text, FALSE
=STDEVPA(10,"abc") #VALUE! Direct arg: non-numeric text
=STDEVPA(Data!C1:C5) #N/A Range containing #N/A

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Text in ranges is counted as 0.
  • Usually STDEV.P is what you want.

Where it works

Excel
STDEVPA is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .