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)?
2 Answers
Use SUMSQ
=SUMSQ(B1:B10) 1I would suggest the following:
- If your input numbers are in
B1:B10, inC1, write=POW(B1, 2) - Then copy the formula in
C1toC2:C10. This will automatically become=POW(C2, 2),=POW(C3, 2)and so on. - Then take the sum of
C1:C10