Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.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查询不返回包含括号()的结果_Google Sheets_Google Sheets Formula - Fatal编程技术网

Google sheets Google sheets查询不返回包含括号()的结果

Google sheets Google sheets查询不返回包含括号()的结果,google-sheets,google-sheets-formula,Google Sheets,Google Sheets Formula,我有一个google工作表,其中运行了一个简单的查询,以查找基于带有管道值的单元格的值 =QUERY(A1:A8;"select A where A matches '"&C2&"'";-1) 管道值为 word 1|word (1) 范围是 Entries word (1) word (2) word (2) word (1) word 1 word 2 word 1 由于某些原因,我没有得到任何包含括号的结果 它可以很好地处理以

我有一个google工作表,其中运行了一个简单的查询,以查找基于带有管道值的单元格的值

=QUERY(A1:A8;"select A where A matches '"&C2&"'";-1) 
管道值为

word 1|word (1)
范围是

Entries
word (1)
word (2)
word (2)
word (1)
word 1
word 2
word 1
由于某些原因,我没有得到任何包含括号的结果

它可以很好地处理以下查询

=QUERY(A1:A8;"select A where A = 'word (1)'";-1)
在matches函数中使用括号是否有任何限制


提前感谢。

您需要转义括号,查询才能工作
这意味着
C2
单元格的正确语法为

你甚至可以使用

你的公式仍然是

=QUERY(A1:A8;"select A where A matches '"&C2&"'";-1)

工作起来很有魅力。非常感谢你!
="word 1|word \(1\)"
=QUERY(A1:A8;"select A where A matches '"&C2&"'";-1)