我希望获得MAX
的总投放量。不仅是该列中的MAX
,而且每个新条目行上的最大运行总次数也已更新。这样它就不会覆盖以前的条目。
到目前为止,我想到了这个:
=ArrayFormula(if($C$3:$C="","",MAX("<="&row($C$3:$C),$C$3:$C,A2)))
,但它会覆盖上面的所有条目。总共给我。
这里是sample doc。
答案 0 :(得分:2)
您可以尝试在A2中复制下来以适合:
=max(A1,C$1:C2)
答案 1 :(得分:1)
=ARRAYFORMULA(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
{QUERY(QUERY(TRANSPOSE(QUERY(TRANSPOSE({
QUERY( Q2:Q, "limit "&COUNTA(Q2:Q)),
QUERY(OFFSET(Q2:Q, -1, 0), "limit "&COUNTA(Q2:Q)-1)}),
"select "®EXREPLACE(JOIN(, IF(LEN(Q2:Q),
"max(Col"&ROW(Q2:Q)-ROW(Q2)+1&"),", )), ".\z", "")&"")),
"select Col2"),
"limit "&COUNTA(Q2:Q)),
{""; QUERY(TRANSPOSE(QUERY(TRANSPOSE({
QUERY( Q2:Q, "limit "&COUNTA(Q2:Q)),
QUERY(OFFSET(Q2:Q, -1, 0), "limit "&COUNTA(Q2:Q)-1)}),
"select "®EXREPLACE(JOIN(, IF(LEN(Q2:Q),
"max(Col"&ROW(Q2:Q)-ROW(Q2)+1&"),", )), ".\z", "")&"")),
"select Col2
limit "&COUNTA(Q2:Q)-1)}}),
"select "®EXREPLACE(JOIN(, IF(LEN(Q2:Q),
"max(Col"&ROW(Q2:Q)-ROW(Q2)+1&"),", )), ".\z", "")&"")),
"select Col2"))