fre*_*nne 2 google-sheets array-formulas google-sheets-formula
我想要一个数组公式来总结每行G26:AD列,因为行数是动态的。
=ArrayFormula(sum(G26:26))
Run Code Online (Sandbox Code Playgroud)
不起作用。我尝试使用MMULT,但未能使其正常工作:
=MMULT(G26:26,TRANSPOSE(ARRAYFORMULA(COLUMN(G26:26)^0)))
Run Code Online (Sandbox Code Playgroud)
还有其他想法吗?
每行的总和A:C:
=arrayformula(mmult(A2:C*1, transpose(A2:C2 * 0 + 1)))
编辑。这甚至更短:=arrayformula(mmult(A2:C*1, transpose(A2:C2 ^ 0)))
=arrayformula(mmult(A2:C*--(A2:C>0), transpose(A2:C2 ^ 0)))
其他条件:
=arrayformula(mmult(A2:D*1, transpose(A2:D2 ^ 0*iseven(column(A2:D2)))))
| 归档时间: |
|
| 查看次数: |
1042 次 |
| 最近记录: |