Excel - STDEVPA Function



STDEVPA Function

The Excel STDEVPA function calculates standard deviation based on the entire population. Users may play with a variety of data formats, such as text and logical values when computing this versatile function.

The mathematical notation of the STDEVPA function −

$$\mathrm{\sqrt{\frac{\sum \left ( x\:-\:\bar{x} \right )^2}{n}}}$$

where x represents the sample mean AVERAGE (value1, value2, …) and n denotes the sample size.

Compatibility

This advanced Excel function is compatible with the following versions of MS Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2016
  • Excel 2013
  • Excel 2010
  • Excel 2007

Syntax

The syntax of the STDEVPA function is as follows −

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

Arguments

You can use the following arguments with the STDEVPA function −

Argument Description Required/ Optional
Value1

It indicated the 1 to 255 values respective to a population.

You can also specify a single array or a cell reference to an array.

Required
Value 2,... Optional

Points to Remember

  • Arguments may contain a mixed set of data values like names, numeric values, arrays, or cell references that refer to the numeric value; text representations of numbers; or logical values, such as TRUE and FALSE, in a reference.
  • If the arguments have text value that would not be interpreted as numbers yields errors.
  • If users deal with massive sample data, the STDEVPA and STDEVA function generates nearly equivalent values.
  • For large sample sizes, STDEVA and STDEVPA return approximately equal values.
  • The standard deviation is computed through the "n" method.
  • The numbers's text depictions directly provided to the arguments list are counted.
  • Arguments that contain TRUE are computed as 1. Arguments that contain text or FALSE are calculated as 0 (zero).
  • If an array is defined in the argument, only numeric values as well as Boolean values are used. However, the blank cells and text values in the array are avoided.
  • If the arguments contain the error then the same error is returned by the STDEVPA function.

Examples of STDEVPA Function

Practice the following examples to get the master proficiency of the STDEVPA function in Excel.

Example 1: Patient Recovery Analysis

In this example, a hospital administrator tracks the patients' recovery days after their treatment. We will use the STDEVPA function to estimate the variability in recovery days.

Solution

Step 1 − First, the sample dataset comprises two columns named Patient ID and Recovery Days, the Patient Ids are specified in the cell range B2:B12, and the associated number of recovery days is depicted in the cell range C2:C12. Select the cell C13 and write the formula =STDEVPA(C2:C12).

The True value is transformed to 1 and, FALSE and text value is converted to 0 when evaluating this STEDEVPA formula.

STDEVPA Function1

Therefore, the STDEVPA function estimates the standard deviation of 4.420089.

STDEVPA Function2

Example 2

If the arguments contain the error then the same error is returned by the STDEVPA function.

Solution

First, you may write the formula =STDEVPA(B2:B9) in the B10 cell. Here, the B5 cell contains the error value in the supplied range of cells.

STDEVPA Function3

After pressing the Enter tab, the STDEVPA function returns the same error #DIV/0!.

STDEVPA Function4

Download Practice Sheet

You can download and use the sample data sheet to practice the STDEVPA function.

Advertisements