Google Spreadsheet sum which always ends on the cell above

后端 未结 7 1462
余生分开走
余生分开走 2020-12-24 01:30

How to create a Google Spreadsheet sum() which always ends on the cell above, even when new cells are added? I have several such calculations to make on each single column s

7条回答
  •  眼角桃花
    2020-12-24 02:10

    This is based on @PsychoFish, here is the solution:

    =SUM(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")&"3:"&ADDRESS(ROW()-1,COLUMN(),4)))
    

    Simply replace the "3:" for the row to start sum.

    @PsychoFish is correct but cannot be dragged and copied since the column is literal and hard coded, and @Druvision was in the right direction but was wrong... basically ended up with the same issue of having to re-enter the ranges and then sliding the formulas over and over.

提交回复
热议问题