【问题标题】:If text match in range conditonal formula Google Sheets error如果范围条件公式中的文本匹配 Google 表格错误
【发布时间】:2022-07-15 07:57:34
【问题描述】:
我正在尝试在 Google 表格中的一系列文本中进行匹配,基本上我使用的是这个公式:
=IF(REGEXMATCH(H2:M2, "Hi"), "Yes", "No")
但我收到一个错误:
【问题讨论】:
标签:
if-statement
google-sheets
excel-formula
match
textmatching
【解决方案1】:
您在函数中引用的数组并非旨在将数组作为输入,因此您需要启用它们。
试试:
=ArrayFormula(IF(REGEXMATCH(H2:M2, "Hi"), "Yes", "No"))
我正在尝试这样做: =IF(("Hi"=H2:L2),"Approve","Noqualify") =IF(("Here"= H2:L2),"Approve", “没有资格”)
假设 E1:E2 是要检查 A1:C1 的值列表,您可以尝试:
=ArrayFormula(if(countif(E1:E2,A1:C1),"Approved","Not qualified"))