How to create running total using Excel table structured references?

后端 未结 3 1015
栀梦
栀梦 2021-02-12 16:35

I\'m looking for a way to create a running total (total of the current row and above) using Excel table structured references.

I know how to do it using the old row/colu

3条回答
  •  北海茫月
    2021-02-12 16:50

    I realize this is an old thread, but I finally have a solution I would like to offer.

    =IF(ISNUMBER(OFFSET([@Balance],-1,0)),OFFSET([@Balance],-1,0)+[@Amount],[@Amount])
    

    In the instance of the first data row, the offset points to the header, which is not a number, therefore the result is only the Amount column.

    The remaining rows give you the previous Balance from the OFFSET plus the current row Amount.

提交回复
热议问题