Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.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
Google sheets 工作表-如何检查一个范围内是否存在多个特定单词_Google Sheets_String Matching - Fatal编程技术网

Google sheets 工作表-如何检查一个范围内是否存在多个特定单词

Google sheets 工作表-如何检查一个范围内是否存在多个特定单词,google-sheets,string-matching,Google Sheets,String Matching,在Google Sheets中,我想在单元格D17中创建一个警报,当范围为D5:D15的查找同时包含两个文本字符串作为匹配时,将文本“match”作为文本列表中的“Oil”和“Water” 当前工作表的屏幕截图: 请使用以下公式 使用的功能: 请分享一个示例(甚至一个屏幕截图),说明每个单元格中的值是如何计算的。只是一个想法。您可能还可以使标题更便于用户使用。例如:“如何检查一个范围内是否存在多个特定单词”。 =IF(AND(COUNTIF(D5:D15,"oil")>0,COUNT

在Google Sheets中,我想在单元格D17中创建一个警报,当范围为D5:D15的查找同时包含两个文本字符串作为匹配时,将文本“match”作为文本列表中的“Oil”和“Water”

当前工作表的屏幕截图:
请使用以下公式

使用的功能:

请分享一个示例(甚至一个屏幕截图),说明每个单元格中的值是如何计算的。只是一个想法。您可能还可以使标题更便于用户使用。例如:“如何检查一个范围内是否存在多个特定单词”。
=IF(AND(COUNTIF(D5:D15,"oil")>0,COUNTIF(D5:D15,"water")>0),"match","no match")