Category: FUNCTION | Updated: 2026-11-22

How to Use the STDEVA Function in Google Sheets | Calculate Standard Deviation Including Text and Booleans

Syntax

=STDEVA(value1, [value2, ...])
  • value1: The first value or range of the sample.
  • value2, … (optional): Additional values or ranges to include in the sample.

Example with a Table

Here is an example of calculating standard deviation when test score data (A2:A6) includes the text "Absent", treating "Absent" as a score of 0.

Cell A (Score) B (Metric) C (Formula) D (Result)
1 Score Method Formula Result
2 80 Include text as 0 =STDEVA(A2:A6) 38.47
3 90 Numbers only =STDEV(A2:A6) 8.16
4 75
5 85
6 Absent

Because STDEVA includes "Absent" as 0 in the calculation, the spread (standard deviation) is much larger than with STDEV, which uses only numeric values.

Common Errors and Notes

  • Watch out for unintended text: If notes or comments are mixed into the data range, they will all be treated as 0, skewing your statistics. In most cases, use STDEV or STDEV.S instead.
  • #DIV/0! Error: Occurs if the total number of valid values (numbers, text, and booleans) is less than 2.
  • Handling empty strings "": Be aware that cells returning "" from functions like IF are treated as zero-length text strings and counted as 0.

Frequently Asked Questions

Q. What is the difference between STDEV and STDEVA?

A. STDEV ignores text and boolean values in a range and calculates using only numbers, whereas STDEVA includes text as 0, TRUE as 1, and FALSE as 0.

Q. Are blank cells also counted as 0?

A. No, completely empty (blank) cells are ignored even by STDEVA. However, cells containing spaces or formulas that return an empty string ("") are treated as text and counted as 0.