如何使用公式在数字中添加顺序?

How to add sequentials in a numbar using formula?

我需要在我的 table 中使用一个公式,它将得到以下结果

请检查这张图片

以B2为例是1+2+3+4+5 在 B3 作为另一个例子是 1+2+3+4+5+6 ETC... 谢谢

尝试

单元格 B2 中使用的公式

=SUMPRODUCT(ROW(INDIRECT("1:"&$A2)))

这是simple math:

=A2*(A2+1)/2