The `SUMSQ` function in Excel is used to calculate the sum of the squares of a set of numbers. It adds up each number in the provided list after squaring them. This function is helpful in various statistical calculations where squaring values is necessary, such as in variance and standard deviation calculations.
Syntax
SUMSQ(number1, [number2], ...)
- number1, number2, …: These are the numbers or cell references you want to square and then sum. The function accepts up to 255 arguments, which can be numbers, cell references, ranges, or a combination.
Steps to Use SUMSQ Function
- Enter Data:
- Input your data set into a column or row in your Excel worksheet.
- Select a Cell:
- Click on the cell where you want the sum of squares to appear.
- Insert the Function:
- Start by typing `=SUMSQ(` in the selected cell.
- Add Arguments:
- Select the cells you want to include in the function. For example, `A1:A5` if your data is in cells A1 through A5.
- Alternatively, you can manually type numbers directly into the function, like `=SUMSQ(3, 4, 5)`.
- Complete the Function:
- Close the parenthesis and press Enter.
Example
Assume your data is in cells A1 to A5 containing the numbers 2, 3, 4, 5, and 6. To calculate the sum of squares, you would:
- Click on cell B1 (or any cell where you want your result).
- Enter the formula: `=SUMSQ(A1:A5)`
- Press Enter.
The Excel formula will return 90, since (2^2 + 3^2 + 4^2 + 5^2 + 6^2 = 4 + 9 + 16 + 25 + 36 = 90).
Tips
- Non-Numeric Data Handling: If your range includes non-numeric data, the `SUMSQ` function will ignore it.
- Using Named Ranges: Instead of manually selecting the cell range, if you have named your data range, you can use that name directly in the formula, like `=SUMSQ(MyDataRange)`.
- Mixing Values and References: You can mix direct values and cell references in the function: `=SUMSQ(A1:A5, 7, 8)`.
Using the `SUMSQ` function is a straightforward process, and it’s particularly useful for mathematical and statistical calculations involving squares.