Google Sheets中出现的数组错误,使用OR运算符(*)。

huangapple go评论76阅读模式
英文:

Google Sheets Array Error using Or asterisk

问题

以下是已翻译的内容:

我有下面的数组,它正在检查多个单元格的条件。但是,当列H中有一个值并且该值包含字母时,我收到一个错误。

我收到的错误是“函数MULTIPLY的第2个参数需要数值。但是'P02269895'是文本,无法强制转换为数字。”

然而,我没有添加/乘法。据我所知,AND/OR语句需要在数组中使用+/*。

我漏掉了什么?

TYIA

Mark

英文:

I have the below array which is checking multiple cells for conditions. However I am receiving an error when column H has a value in it and the value contains letters.

=ArrayFormula(if(A:A="","", if(row(A:A)=1,"Cert Generated?",
if(H:H="","N/A",
if((AF:AF=""*+H:H<>""),"No","Yes")))))

I receive the error "Function MULTIPLY parameter 2 expects number values. But 'P02269895' is a text and cannot be coerced to a number.".

However, I am not adding/multiplying. From what I know, AND/OR statements need to use a +/* in an array.

What am I missing?

TYIA

Mark

答案1

得分: 1

用以下部分替换公式中的这部分

(AF:AF="")*(H:H<>"")

英文:

<!-- language-all: js -->

replace this part of the formula

(AF:AF=&quot;&quot;*H:H&lt;&gt;&quot;&quot;)

with

(AF:AF=&quot;&quot;)*(H:H&lt;&gt;&quot;&quot;)

huangapple
  • 本文由 发表于 2023年6月29日 05:23:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76576792.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定