问题描述
我试图制作一个数组公式,它将所有行加起来,直到这一行。
澄清列a将是输入,列b将是输出。我正在寻找一种使用arrayformula做到这一点的方法。
a1:1 b1:1
a2:2 b2:3
a3:5 b3:8
a4:3 b4:11
我尝试使用
= ARRAYFORMULA(SUM(INDIRECT(F1: & ADDRESS(ROW(),COLUMN(F2:F)))))但这不起作用。 >由于OP通过澄清改变了问题,下面提交了一个不同的答案:
B1:
<$ p $ (1:5),IF(行(1:5),COLUMN(A:E)<=行(1:5)),ROW( 1:5)^ 0))
I'm trying to make an array formula which sums up all the rows until this row.For clarification column a will be the input and column b would be the output. I'm looking for a way to do this with an arrayformula.
a1:1 b1:1
a2:2 b2:3
a3:5 b3:8
a4:3 b4:11
I tried to use
=ARRAYFORMULA(SUM(INDIRECT("F1:"&ADDRESS(ROW(),COLUMN(F2:F))))) but this doesn't work.
Since OP changed the question with a clarification, A different answer is submitted below:
B1:
=ARRAYFORMULA(MMULT(transpose(A1:A5)*--IF(row(1:5),COLUMN(A:E)<=row(1:5)),ROW(1:5)^0))
这篇关于Arrayformula总计一列直到这一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!