Hi, I'm wondering if someone can help with a problem I have.

If you have a hundred square, 10x10 with numbers 1 - 10 in the first row etc., and you have 2x2, 3x3 squares etc. starting from 1 (top left), is there an equatuion for working out the sum total of the numbers within the square, so I could work out the total of the numbers within an nxn square?

Thanks in advance.