The DEVSQ function in Excel is a statistical tool that computes the sum of the squares of the deviations of specific numerical data points from the mean. This function is especially useful in various fields such as finance, research, and data analysis, providing insights into variability and data distribution.
Syntax
DEVSQ(number1, [number2], …)
- number1: The first numeric value or range from which to calculate the sum of squares.
- number2: Optional. Additional numeric values or ranges for which to calculate the sum of squares.
Example #1
=DEVSQ(A1:A5)
This function computes the sum of squares of the deviations for the values in the range A1 to A5. For example, if A1:A5 contains the values 3, 4, 6, 8, and 10, the result will be 38.
Example #2
=DEVSQ(1, 2, 3, 4)
Here, the function calculates the sum of squares of the deviations of the numbers 1, 2, 3, and 4 from their mean. The outcome would be 10, as it computes (1-2.5)² + (2-2.5)² + (3-2.5)² + (4-2.5)².
Example #3
=DEVSQ(A1, B1, C1)
This function calculates the sum of squares of the deviations for values from the cells A1, B1, and C1. Assuming A1=2, B1=5, and C1=7, the result will be 10, as it calculates the individual squared deviations from the mean of those three values.
Error handling
- VALUE!: This error occurs if non-numeric values are included in the arguments.
- NUM!: This error arises when the function is given an empty range or invalid arguments.