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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.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列中,我有子部分或类别(1/2/3)等。 在B列中,我想设置一个数组来执行以下操作。它将在A列中查找,并获取使用的最后一个小节。 当我将公式复制并粘贴到每一行时,它会起作用,但我希望将其设置为数组,以便它自动填充工作表 =ARRAYFORMULA( INDEX( INDIRECT("A$1:A" & ROW()), MATCH(9.99999999999999E+307,INDIRECT("A$1:A" & ROW()

好吧,我试着做一些简单的事情,但它仍然让我感到困惑

在A列中,我有子部分或类别(1/2/3)等。 在B列中,我想设置一个数组来执行以下操作。它将在A列中查找,并获取使用的最后一个小节。 当我将公式复制并粘贴到每一行时,它会起作用,但我希望将其设置为数组,以便它自动填充工作表

=ARRAYFORMULA(
 INDEX(
 INDIRECT("A$1:A" & ROW()),
 MATCH(9.99999999999999E+307,INDIRECT("A$1:A" & ROW()))
 )
 )
链接:
可能是这样的:

=ArrayFormula(if(row(A:A) <= max(if(not(isblank(A:A)), row(A:A))),vlookup(row(A:A),filter({row(A:A),A:A},len(A:A)),2),))
=数组公式(如果(A:A行)