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
If statement 在谷歌工作表中,如何引用所有行中的无限列?_If Statement_Google Sheets_Google Sheets Formula_Array Formulas - Fatal编程技术网

If statement 在谷歌工作表中,如何引用所有行中的无限列?

If statement 在谷歌工作表中,如何引用所有行中的无限列?,if-statement,google-sheets,google-sheets-formula,array-formulas,If Statement,Google Sheets,Google Sheets Formula,Array Formulas,如何引用无限行的问题已经得到了回答,但是如何引用无限列呢 例如,Sheet1的数据行数和列数不确定,Sheet2的公式如下 =arrayformula(if(Sheet1!A:Z="","blank","not blank")) 它无限下降。。。但是如果我想要张1呢!A:无限列 这是我能想到的最好的了 =arrayformula(if(indirect("sheet1!R1C1:"&"R"&rows(Sheet1!A:A)&"C"&COLUMNS(Sheet1!

如何引用无限行的问题已经得到了回答,但是如何引用无限列呢

例如,Sheet1的数据行数和列数不确定,Sheet2的公式如下

=arrayformula(if(Sheet1!A:Z="","blank","not blank"))
它无限下降。。。但是如果我想要张1呢!A:无限列

这是我能想到的最好的了

=arrayformula(if(indirect("sheet1!R1C1:"&"R"&rows(Sheet1!A:A)&"C"&COLUMNS(Sheet1!1:1),false)="","blank","not blank"))
所以我的问题是,有没有一种更简单、更短的方法来实现这一点?

试试:

=ARRAYFORMULA(IF(INDIRECT("Sheet1!A1:"&ROWS(Sheet1!A:A))="", "blank", "not blank"))
尝试:


可能是此示例将获取从第1行到第1行的所有列:

=arrayformula(if(Sheet1!A1:1="","blank","not blank"))
因此,对于无限列,我们可以获取从第1行到最后一行的所有列:

=arrayformula(if({indirect("MainSheet!1:" & rows(MainSheet!A:A))}="","blank","not blank"))

可能是此示例将获取从第1行到第1行的所有列:

=arrayformula(if(Sheet1!A1:1="","blank","not blank"))
因此,对于无限列,我们可以获取从第1行到最后一行的所有列:

=arrayformula(if({indirect("MainSheet!1:" & rows(MainSheet!A:A))}="","blank","not blank"))