Sum of row n through last row

后端 未结 4 1067
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 19:24

I want to create a TOTAL row at the top of my spreadsheet. In this row, each cell should be the SUM of the values in the column below the TOTAL row.

So for example, i

4条回答
  •  我寻月下人不归
    2021-02-03 19:52

    If you want something that just works in Google Spreadsheets (as the title suggests), you can use open-ended ranges:

    =SUM(A2:A)
    

    In Excel, you can specify the maximum rows for that version; for example, for 2007 and 2010:

    =SUM(A2:A1048576)
    

    This will work in Google Spreadsheets as well, and is beyond the current theoretical row limit in GSheets (400000)*.

    Edit: *The quoted limit of the new version of Sheets is actually now 2 million cells.

提交回复
热议问题