The STDEVPA function in Google Sheets is an essential statistical tool used to calculate the standard deviation of an entire population. One of its unique features is the ability to treat text entries as zero, which makes it particularly useful in various data analysis scenarios where textual data might be present amongst numerical values.
Syntax
STDEVPA(value1, [value2, ...])
- value1: The first number or range of numbers from which to calculate the standard deviation.
- [value2, …]: Optional additional values or ranges to consider in the calculation.
Example #1
STDEVPA(10, 20, 30, "Text", 40)
This function calculates the standard deviation of the numbers 10, 20, 30, and 40, treating “Text” as 0. The result would be approximately 12.91.
Example #2
STDEVPA(A1:A5)
If A1 through A5 contain the values 5, 15, 25, “Hello”, and 35, the function will treat “Hello” as 0, and the resulting standard deviation will be approximately 12.25.
Example #3
STDEVPA(5, 15, 25, 35, "World", 45)
This function calculates the standard deviation for the values provided, again treating “World” as 0, resulting in a standard deviation of about 15.81.
Error handling
- DIV/0!: This error occurs when there are no numerical values available for the calculation.
- VALUE!: This error appears when the input contains incompatible data types that cannot be processed.
- N/A: This error indicates that a referenced value does not exist in the given range.