Google Spreadsheet sum which always ends on the cell above

后端 未结 7 1387
余生分开走
余生分开走 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:11

    I like how @abernier describes the general solution. So far only alphabet-based A1 notation (A being first column, 1 being first row) are being used. It keeps confusing me, especially when thinking of number of columns left of another column. I like the number-based R1C1 notation much better. To use R1C1 notation for INDIRECT, you need to pass FALSE like so:

    =SUM(INDIRECT("R1C"&COLUMN()&":R"&(ROW()-1)&"C"&COLUMN(), FALSE))
    

    I hope you find that helpful, too.

    0 讨论(0)
提交回复
热议问题