Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.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
Regex Google Sheets双值的条件格式规则_Regex_Google Sheets_Google Sheets Formula_Gs Conditional Formatting_Textjoin - Fatal编程技术网

Regex Google Sheets双值的条件格式规则

Regex Google Sheets双值的条件格式规则,regex,google-sheets,google-sheets-formula,gs-conditional-formatting,textjoin,Regex,Google Sheets,Google Sheets Formula,Gs Conditional Formatting,Textjoin,我试图实现的是,当一张纸上的值已经写在另一张纸上时,它的背景色应该改变 它应该检查值是否已经存在的范围是:B2:AF120 与已存在值的其他图纸的范围为:Sheet2!G3:Q58 我尝试过的自定义公式是: =match(B2:AF120,indirect("Teams!G3:Q58"),0) 你可以在下图中看到整个过程 试试: =REGEXMATCH(B2, TEXTJOIN("|", 1, INDIRECT("Sheet2!G3:Q"))) 确切的匹配是: =REGEXMATCH(B2,

我试图实现的是,当一张纸上的值已经写在另一张纸上时,它的背景色应该改变

它应该检查值是否已经存在的范围是:B2:AF120 与已存在值的其他图纸的范围为:Sheet2!G3:Q58

我尝试过的自定义公式是:

=match(B2:AF120,indirect("Teams!G3:Q58"),0)
你可以在下图中看到整个过程

试试:

=REGEXMATCH(B2, TEXTJOIN("|", 1, INDIRECT("Sheet2!G3:Q")))
确切的匹配是:

=REGEXMATCH(B2, "^"&TEXTJOIN("$|^", 1, INDIRECT("Sheet2!G3:Q"))&"$")

您能分享一份您的工作表吗?@player0非常感谢,这看起来太让我困惑了^^请检查工作表名称是否与Sheet2Teams相同