Sigma or Summation function in Excel

后端 未结 5 744
深忆病人
深忆病人 2021-01-02 17:22

Given a value (in a cell), calculate a formula like this:

Ʃ(3i+1) for i from 0 to the value specified in the cell.

SUM(), SERIESSUM() are not suitable in thi

5条回答
  •  悲哀的现实
    2021-01-02 18:12

    To leave you all options, just use this:

    =SUMPRODUCT(3*(ROW(A1:INDEX(A:A,B1-A1+1))-(1-A1))+1)
    

    A1 is the lower limit and B1 is the upper limit... will also work for ranges like i = -5 to -3 ;)

提交回复
热议问题