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
Web applications 在一列中计算两列的乘积_Web Applications_Google Sheets_Google Sheets Formula - Fatal编程技术网

Web applications 在一列中计算两列的乘积

Web applications 在一列中计算两列的乘积,web-applications,google-sheets,google-sheets-formula,Web Applications,Google Sheets,Google Sheets Formula,我试图在谷歌表单中创建一个公式,其中一列计算两列的乘积。我可以简单地在F列中键入每个单元格作为示例: =if(and(A1>0,C1>0),A1*C1,"") 但是,如果这些列中有100行,则会变得单调乏味。我试过: =arrayformula(if(and(A1:A100>0,C1:C100>0),A1:A100*C1:C100,"" 尝试: 尝试以下=arrayformula(如果(A1:A100>0,如果(C1:C100>0,A1:A100*C1:C100,”)

我试图在谷歌表单中创建一个公式,其中一列计算两列的乘积。我可以简单地在F列中键入每个单元格作为示例:

=if(and(A1>0,C1>0),A1*C1,"")
但是,如果这些列中有100行,则会变得单调乏味。我试过:

=arrayformula(if(and(A1:A100>0,C1:C100>0),A1:A100*C1:C100,""
尝试:

尝试以下
=arrayformula(如果(A1:A100>0,如果(C1:C100>0,A1:A100*C1:C100,”))
=arrayformula(如果(A1:A>0,如果(C1:C>0,A1:A*C1:C)”),100,1)
。但是您应该阅读以了解
在数组公式中的用法。事实上,你的问题可能是这个问题的重复
=arrayformula(if((A1:A100>0)*(C1:C100>0),A1:A100*C1:C100,""))