The DEVSQ Function is categorized under Excel Statistical functions. It will calculate the sum of the squared deviations from the sample mean. The function, for example, can be used to find the variation in temperatures, blood pressure readings, etc.
As a financial analyst, DEVSQ is useful in understanding the variance in daily stock values that can signify market instability and higher risks for investors.
When we take the square root of the sum of squares, we get the standard deviation, an even more useful number. The variance and standard deviation functions deal with negative deviations by squaring deviations before they are averaged. DEVSQ calculates the sum of the squared deviations from the mean, without dividing by N or by N-1.
=DEVSQ(number1, [number2], …)
The DEVSQ function uses the following arguments:
Number1 (required argument) – This is the value for which we wish to calculate the sum of squared deviations.
Number2 (optional argument) – A second numeric value (or array of numeric values) for which we want to calculate the sum of the squared deviation.
The arguments can be between 1 to 255. However, in Excel 2003, the DEVSQ function can only accept up to 30 number arguments. We can use a single array or a reference to an array instead of arguments, separated by commas.
The equation for the sum of squared deviations is:
To understand the uses of the DEVSQ function, let’s consider an example:
Suppose we are given the following data:
The formula to use for calculating the sum of the squared deviations is:
We get the result below:
Things to remember about the DEVSQ Function
#VALUE! error – Occurs when any of the number arguments that are provided directly to the DEVSQ function are text strings that cannot be interpreted as numbers.
#NUM! error – Occurs when none of the values supplied to the DEVSQ function is numeric. Text representations of numbers that are provided as a part of an array are not interpreted as numeric values by the function.
For DEVSQ, arguments can be numbers, names, arrays, or references that contain numbers.
Empty cells and cells that contain text or logical values are ignored by the function. Hence, they will not be included in the calculation.
Free Excel Course
To keep learning about Excel functions and developing your skills, check out our Free Excel Crash Course! Learn how to create more sophisticated financial analysis and modeling and become a successful financial analyst.
Thanks for reading CFI’s guide to the Excel DEVSQ function. By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources:
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Already have a Self-Study or Full-Immersion membership? Log in
Access Exclusive Templates
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.