St dev a
STDEVA Function¶
The STDEVA function in Excel is used to calculate the standard deviation of a sample, but it evaluates both
numeric and non-numeric data. Unlike STDEV.S, this function includes logical values and text in its calculations,
assigning specific numeric values to them (e.g., TRUE as 1 and FALSE or text as 0).
Key Features of STDEVA:¶
- Measures Variation: Indicates how spread out the sample data is around its mean.
- Handles Mixed Data Types: Evaluates logical values and text alongside numbers.
- Sample-Based Calculation: Applies Bessel's correction (divides by
n-1), used for sample datasets.
Syntax:¶
- value1: Required. The first value, cell reference, or range to evaluate.
- value2, …: Optional. Additional values, cell references, or ranges (up to 254 arguments).
How It Works:¶
The formula for sample standard deviation is the same as for STDEV.S:
Where:
- xᵢ is each individual data point (including treated logical and text values).
- x̄ is the sample mean.
- n is the total number of data points in the sample.
Data Evaluation Rules:¶
For non-numeric data in the input:
- Logical Values:
TRUEis treated as1.FALSEis treated as0.
- Text:
- Any text (even numbers entered as text) is treated as
0.
- Any text (even numbers entered as text) is treated as
Examples:¶
-
Simple Calculation with Mixed Types: Consider the dataset
{10, TRUE, FALSE, "text", 30}. To calculate the sample standard deviation:- Logical values are treated as
1(TRUE) and0(FALSE). - Text is treated as
0. - Result:
12.91.
- Logical values are treated as
-
Using Cell Ranges: If the dataset is in cells
Yields the same result as above.A1:A5with values{10, TRUE, FALSE, "text", 30}, the formula: -
Combination of Ranges and Values: For a dataset spread across
A1:A3and{20, FALSE}as additional values:
Comparisons with Related Functions:¶
-
STDEVAvsSTDEV.S:STDEVAincludes logical values and text in calculations.STDEV.Signores logical values and text.
-
STDEVAvsSTDEV.PandSTDEVPA:- Use
STDEV.PorSTDEVPAfor entire population calculations. STDEVPAincludes logical values and text, similar toSTDEVA.
- Use
Notes:¶
- Data Type Inclusion:
- Use
STDEVAwhen logical values and text are intentionally part of the dataset. - Inputs that are empty cells are ignored.
- Use
- Errors:
#DIV/0!occurs if there are fewer than two data points after evaluation (e.g., all empty cells).
- Performance Tip:
- When dealing exclusively with numbers, prefer
STDEV.SorSTDEV.Pfor faster computation.
- When dealing exclusively with numbers, prefer
Applications:¶
- Mixed Datasets: Analyze variation in datasets with a mix of numeric and logical/text values.
- Survey Data: Calculate variability in datasets where responses include
TRUE/FALSEor text. - Experimental Analysis: Assess datasets containing both qualitative and numeric measurements.
Tip: Use
STDEVAwhen logical values and text need to be factored into the standard deviation calculation. For strict numeric analysis, switch toSTDEV.SorSTDEV.P.