The Standard Deviation is a statistical measure, that is closely linked to the Variance. Both measures are commonly used across a set of values, to identify the amount that the values differ (or deviate) from the average value.
For any set of values, the Standard Deviation is give by the square root of the variance. ie.
where x takes on each value in the set, x is the average (statistical mean) of the set of values, and n is the number of values in the set.A full explanation can be found on the Wikipedia Standard Deviation page
The Excel STDEVPA function calculates the standard deviation of a supplied set of values.
The format of the function is :
where the arguments, number1, [number2], etc, are one or more numerical values or references to cells containing numbers.
If you are using Excel 2007 or Excel 2010, you can enter up to 255 number arguments to the function. However, in Excel 2003, the function can only accept up to 30 number arguments.
Note that the Stdevpa function is used when calculating the standard deviation for an entire population. If you are calculating the standard deviation of an sample population, you need to use the Stdev or the need to use the Stdeva function.
The following spreadsheet shows the Excel Stdevpa function used to calculate the standard deviation of the set of values in cells A1-A4 and in cells A1-A6.
The format of the functions are shown in the spreadsheet on the left and the resulting values are shown in the spreadsheet on the right.
Note that, in the spreadsheet above, the function in cell B2 includes the values in cells A5 and A6. In this case, the logical value TRUE in cell A5 is treated as the value 1 and the text in cell A6 is treated as the value 0. This is shown by the example in cell B3, in which cells A1 - A4 and the values 1 and 0 give the same result as the standard deviation calculation for cells A1 - A6.
Further information and examples of the Excel Stdevpa function can be found on the Microsoft Office website.
If you get an error from the Excel Stdevpa function this is most likely to be the #VALUE! error:
|#VALUE!||-||Occurs if any values that are supplied directly to the Stdevpa function are text values that cannot be interpreted as numeric values.|