The STDEVA function in Google Sheets is a powerful statistical tool used to calculate the standard deviation of a sample while treating text values as zeros. This function can be particularly useful for analyzing datasets that contain a mix of numerical and non-numerical data, ensuring a more comprehensive evaluation of variability.
Syntax
STDEVA(value1, [value2, ...])
- value1: The first value or range for which you want to calculate the standard deviation.
- value2: Optional. Additional values or ranges that you want to include in the calculation.
Example #1
STDEVA(A1:A5)
This function calculates the standard deviation of the values in the range A1 to A5, treating any text within that range as `0`. For example, if A1=10, A2=20, A3=”Hello”, A4=30, and A5=40, the result would be approximately 15.81.
Example #2
STDEVA(10, 20, "Test", 30)
In this case, the function calculates the standard deviation of the numbers 10, 20, and 30, while treating “Test” as `0`. The result would be approximately 10.00.
Example #3
STDEVA(12, 15, 18, "Text", 22)
This function returns the standard deviation for the values provided, ignoring the text value and treating it as `0`. For this example, the result would be approximately 4.24.
Error handling
- DIV/0!: This error occurs when there are no numeric values to calculate the standard deviation.
- VALUE!: This indicates that one or more of the arguments given cannot be recognized as a number or is of the wrong type.
- N/A: This happens if the function is unable to calculate the standard deviation due to unavailable data.