Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets Google电子表格:如何通过聚合函数自动填充列_Google Sheets - Fatal编程技术网

Google sheets Google电子表格:如何通过聚合函数自动填充列

Google sheets Google电子表格:如何通过聚合函数自动填充列,google-sheets,Google Sheets,让我们看看电子表格有两列。J包含值,K包含J中所有“先前”值和当前值的总和。 我将K0设置为=SUM(J$0:J0),并在每次向J添加新行时拖动它,因此 K1变成=总和(J$0:J1), K2变成=总和(J$0:J2),等等 它工作得很好,我只是想知道是否可以通过用一些数组公式替换K来避免手动操作? 我尝试了类似 =数组公式(如果(J:J,SUM(J$0:J),”)-它为所有行返回相同的值=所有值的总和 我尝试了“间接”: =arrayformula(if(J:J,SUM(J$0:indirec

让我们看看电子表格有两列。J包含值,K包含J中所有“先前”值和当前值的总和。
我将K0设置为=SUM(J$0:J0),并在每次向J添加新行时拖动它,因此
K1变成=总和(J$0:J1),
K2变成=总和(J$0:J2),等等
它工作得很好,我只是想知道是否可以通过用一些数组公式替换K来避免手动操作?
我尝试了类似
=数组公式(如果(J:J,SUM(J$0:J),”)
-它为所有行返回相同的值=所有值的总和
我尝试了“间接”:
=arrayformula(if(J:J,SUM(J$0:indirect(“J”&ROW(J0:J))),”)
-它为所有行返回相同的值=第一个值-似乎在开始时只计算一次间接值

多亏了神奇的答案

在单元格K1中尝试以下公式:
=数组公式(if(J:J=“”;”;mmult((J:J)行>=转置(J:J)行))*转置(J:J);行(J:J)^0))