Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/13.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
Arrays 谷歌电子表格数组不工作_Arrays_Google Sheets - Fatal编程技术网

Arrays 谷歌电子表格数组不工作

Arrays 谷歌电子表格数组不工作,arrays,google-sheets,Arrays,Google Sheets,我不确定我错过了什么,因为我的阵列不工作。以下是链接: 请勾选绿色突出显示 谢谢我不知道如何解释它为什么不起作用,因为有一个列表-数组公式的各种操作方式-但我想建议您使用regexextract而不是搜索:我为is profile和is live创建了两个公式,希望我能试着解释这些片段的作用: 在Y列中: =arrayformula(if(arrayformula(if(istext(regexextract(C2:C,"automated")),1,0))+arrayformula(if(o

我不确定我错过了什么,因为我的阵列不工作。以下是链接:

请勾选绿色突出显示


谢谢

我不知道如何解释它为什么不起作用,因为有一个列表-数组公式的各种操作方式-但我想建议您使用regexextract而不是搜索:我为is profile和is live创建了两个公式,希望我能试着解释这些片段的作用:

在Y列中:

=arrayformula(if(arrayformula(if(istext(regexextract(C2:C,"automated")),1,0))+arrayformula(if(or(istext(regexextract(C2:C,"clinic profile")),istext(regexextract(C2:C,"dr profile"))),1,0))=2,1,0))
在Z列中:

=arrayformula(if(Y2:Y=1,if(istext(regexextract(C2:C,"live")),1,0),0))
基本上不用搜索,regexextract可以在文本中的任何地方找到搜索词,它可以很好地与数组公式配合使用,然后使用if和istext给它一个true-of-false值1或0

如果在相应的单元格中找不到该值,理论上,如果该值在单个单元格中,它将返回#N/A-但如果该值在该单元格中,则regextract将向您返回该值,这就是istext工作的原因


顺便说一句,如果我把你弄糊涂了,那么如果你想让任何人都可以编辑你的工作表,我可以跳进去告诉你我做了什么。

我在那里添加了公式-我编辑的所有列都变成了蓝色。另一个问题是将countifs转换为array:=countifs('raw-premium-doctors'!C:C,$AC2,'raw-premium-doctors'!J,“FALSE”)我没有在上面看到一张名为raw-premium-doctors(原始高级医生)!C2:C,$AC2:AC,'raw-premium-doctors'!J2:J,“FALSE”))的表格,所以你如何计算它上的If?但不管数组是否为=arrayformula(countifs('raw-premium-doctors'!C2:C,$AC2:AC,'raw-premium-doctors'!J2:J,“FALSE”))我在这里尝试过了,数组