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 Arrayformula在此行之前求和一列_Google Sheets_Sum_Array Formulas - Fatal编程技术网

Google sheets Arrayformula在此行之前求和一列

Google sheets Arrayformula在此行之前求和一列,google-sheets,sum,array-formulas,Google Sheets,Sum,Array Formulas,我试图建立一个数组公式,它将所有行相加,直到这一行。 对于澄清,a列为输入,b列为输出。我正在寻找一种用数组公式来实现这一点的方法 a1:1 b1:1a2:2 b2:3a3:5 b3:8a4:3 b4:11 我尝试使用=ARRAYFORMULA(SUM(间接(“F1:”&ADDRESS(ROW(),COLUMN(F2:F‘)))))但这不起作用。由于OP对问题进行了澄清,因此在下面提交了不同的答案: B1: =ARRAYFORMULA(MMULT(转置(A1:A5)*--IF(行(1:5),列(

我试图建立一个数组公式,它将所有行相加,直到这一行。 对于澄清,a列为输入,b列为输出。我正在寻找一种用数组公式来实现这一点的方法


a1:1 b1:1
a2:2 b2:3
a3:5 b3:8
a4:3 b4:11


我尝试使用
=ARRAYFORMULA(SUM(间接(“F1:”&ADDRESS(ROW(),COLUMN(F2:F‘)))))但这不起作用。

由于OP对问题进行了澄清,因此在下面提交了不同的答案:

B1:


=ARRAYFORMULA(MMULT(转置(A1:A5)*--IF(行(1:5),列(A:E)由于OP通过澄清更改了问题,下面提交了不同的答案:

B1:

=ARRAYFORMULA(MMULT)(转置(A1:A5)*--IF(行(1:5),列(A:E)怎么样

=arrayformula(sumif(row(A1:A4),"<="&row(A1:A4),A1:A4))
=arrayformula(sumif)(行(A1:A4))“怎么样

=arrayformula(sumif(row(A1:A4),"<="&row(A1:A4),A1:A4))

=arrayformula(sumif(A1:A4行),”你期望的输入和输出是什么?如果不清楚的话,很抱歉。第一列是输入,第二列是输出,你期望的输入和输出是什么?如果不清楚的话,很抱歉。第一列是输入,第二列是输出,看起来很复杂。但是我它确实有用。今晚要玩它。非常感谢你的帮助:)哇,这看起来很复杂。但它确实有用。今晚要玩它。非常感谢你的帮助:)
=sumif(row(A1:A4),"<=1",A1:A4)
=sumif(row(A1:A4),"<=2",A1:A4)