Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In excel, my data is populated from Cell B1 to B10 in Excel. I want to obtain the sum of the squares from B1 to B10.

I could use a simple function POW(B1,2)+POW(B2,2)......+POW(B10,2). But this is too cumbersome to write and error prone.

Is there a shortcut function that is similar to SUM(B1:B10)?

share|improve this question
up vote 6 down vote accepted

Use SUMSQ

=SUMSQ(B1:B10)
share|improve this answer
    
This is correct. – Uninspired Aug 19 '10 at 3:58

I would suggest the following:

  1. If your input numbers are in B1:B10, in C1, write =POW(B1, 2)
  2. Then copy the formula in C1 to C2:C10. This will automatically become =POW(C2, 2), =POW(C3, 2) and so on.
  3. Then take the sum of C1:C10
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.