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 Sheets_Array Formulas - Fatal编程技术网

Google sheets 用另一列中的最大值/最后一个值填充列

Google sheets 用另一列中的最大值/最后一个值填充列,google-sheets,array-formulas,Google Sheets,Array Formulas,如何获得上一次填充单元格A之前的ARRAYFORMULA示例中的结果 我可以使用单元格C1中的公式=MAX(B$1:B1),但在这种情况下,必须依次复制每个单元格中的公式。在C2中,请尝试: =ArrayFormula(if(row(A2:A) <= max(if(not(isblank(A2:A)), row(A2:A))),vlookup(row(A2:A),filter({row(A2:A),B2:B},len(B2:B)),2),)) =ArrayFormula(if)(第(A

如何获得上一次填充单元格A之前的
ARRAYFORMULA
示例中的结果

我可以使用单元格C1中的公式
=MAX(B$1:B1)
,但在这种情况下,必须依次复制每个单元格中的公式。

在C2中,请尝试:

=ArrayFormula(if(row(A2:A) <= max(if(not(isblank(A2:A)), row(A2:A))),vlookup(row(A2:A),filter({row(A2:A),B2:B},len(B2:B)),2),))
=ArrayFormula(if)(第(A2:A)行)