SUMSQ Function in Excel

π Part 1: Introduce

π Definition The SUMSQ function in Excel returns the sum of the squares of the arguments.

π― Purpose The primary purpose of the SUMSQ function is to compute the sum of the squares of given numbers, which can be useful in various mathematical and statistical analyses.

π Syntax & Arguments

syntax
`=SUMSQ(number1, [number2], ...) `
• number1: Required. The first number you want to square and sum.
• [number2], …: Optional. Additional numbers you want to square and sum.

π Explain the Arguments in function

• number1: This is the primary number for the SUMSQ function. It represents the first value you wish to square and sum.
• [number2], …: You can use additional numbers with SUMSQ. They represent subsequent values you wish to square and sum.

π Return value The SUMSQ function returns the sum of the squares of the specified numbers.

β Remarks

• Arguments can be numbers or names, arrays, or references containing numbers.
• Numbers, logical values, and text representations of numbers that you type directly into the list of arguments are counted.
• If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values, text, or error values in the array or reference are ignored.

π Part 2: Examples

π’ Example 1: Calculating Total Square of Sales and Returns

• π― Purpose: To compute the sum of the squares of sales and returns.
• π Datasheet and formulas:
ABCD
1SalesReturnsSUMSQ FormulaResult
2150-20=SUMSQ(A2:A4,B2:B4)94925
3200-30
4180-25
• π Explanation: This example demonstrates how to use SUMSQ to calculate the sum of the squares of sales and returns. The function squares each sale and return value and sums them up, resulting in 94,925.

For the formula `=SUMSQ(A2:A4,B2:B4)`, we’ll square each value in the range A2:A4 and B2:B4, then sum them up:

(150^2) + (-20^2) + (200^2) + (-30^2) + (180^2) + (-25^2) = 22500 + 400 + 40000 + 900 + 32400 + 625 = 94925

π’ Example 2: Calculating Square of Profits and Losses

• π― Purpose: To compute the sum of the squares of monthly profits and losses.
• π Datasheet and formulas:
ABCD
1ProfitsLossesSUMSQ FormulaResult
2300-50=SUMSQ(A2:A4,B2:B4)115025
3250-40
4320-35
• π Explanation: This example demonstrates how to use SUMSQ to calculate the sum of monthly profits and losses squares. The function squares each profit and loss value and then sums them up, resulting in a total of 115,025.

π’ Example 3: Calculating Square of Production and Wastage

• π― Purpose: To compute the sum of the squares of production and wastage units.
• π Datasheet and formulas:
ABCD
1ProductionWastageSUMSQ FormulaResult
2500-30=SUMSQ(A2:A4,B2:B4)270850
3550-25
4480-20
• π Explanation: This example illustrates how to use SUMSQ to calculate the sum of the squares of production and wastage units. The function squares each production and wastage value and then sums them up, resulting in a total of 270,850.

π’ Example 4: Calculating Square of Inventory and Damages

• π― Purpose: To compute the sum of inventory and damaged items squares.
• π Datasheet and formulas:
ABCD
1InventoryDamagesSUMSQ FormulaResult
2400-15=SUMSQ(A2:A4,B2:B4)162650
3420-10
4390-5
• π Explanation: This example showcases how to use SUMSQ to calculate the sum of the squares of inventory and damaged items. The function squares each inventory and damage value and then sums them up, resulting in 162,650.

π’ Example 5: Calculating Square of Orders and Returns

• π― Purpose: To compute the sum of the squares of orders placed and items returned.
• π Datasheet and formulas:
ABCD
1OrdersReturnsSUMSQ FormulaResult
2600-40=SUMSQ(A2:A4,B2:B4)365825
3620-35
4580-30
• π Explanation: This example demonstrates how to use SUMSQ to calculate the sum of the squares of orders placed and items returned. The function squares each order and return value and then sums them up, resulting in a total of 365,825.

π’ Example 6: Using SUMSQ with IF for Discounted Items

• π― Purpose: To compute the sum of the squares of discounted items.
• π Datasheet and formulas:
ABCDE
1ItemsDiscountSUMSQ FormulaResultDiscounted
21005%=SUMSQ(IF(D2:D4>0, A2:A4))50500Yes
31500%No
420010%Yes
• π Explanation: This example demonstrates how to use SUMSQ with the IF function to calculate the sum of the squares of items with a discount. The formula checks if there’s a discount and then squares the item value, summing them up to 50,500.

π’ Example 7: Using SUMSQ with SUM for Total Sales

• π― Purpose: To compute the sum of the squares of sales and then add a bonus.
• π Datasheet and formulas:
ABCD
1SalesBonusSUMSQ FormulaResult
250050=SUM(SUMSQ(A2:A4), B2:B4)855165
355055
460060
• π Explanation: This example showcases how to use SUMSQ with the SUM function to calculate the sum of the squares of sales and then add a bonus to each squared value. The squared sales values are summed up to 855,000, and the bonuses add 165, resulting in a total of 855,165.

π Part 3: Tips and tricks

1. π« Ensure that the arguments you’re using with SUMSQ are numbers or references that contain numbers.
2. β You can nest other functions within SUMSQ for more complex calculations.
3. π When using SUMSQ with arrays or references, ensure they only contain numbers to avoid errors.
4. π Regularly check for updates and additional functionalities Microsoft provides for the SUMSQ function.