How to create running total using Excel table structured references?

后端 未结 3 1019
栀梦
栀梦 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:46

    =SUM(OFFSET([WTaskUnits],0,0,ROW()-ROW([[#Headers],[Running Total]])))
    

    The table has two columns [WTaskUnits] and [Running Total]. The formula above sums the range of cells as requested.

    The first arguments of the OFFSET function define the starting point of the sum. The fourth term,

    ROW()-ROW([[#Headers],[Running Total]]
    

    is a useful idiom for the number of the current row in the table.

提交回复
热议问题