n(n+1)/2 - (m-1)m/2
...which comes out to
(n**2 - m**2 + m + n)/2
I'm not aware of any Excel function that does that calculation for you.
--- "jefferson" wrote:> 在Excel如何加總算出 sigma (1 到 n),