Google sheets Google sheets查询不返回包含括号()的结果
我有一个google工作表,其中运行了一个简单的查询,以查找基于带有管道值的单元格的值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 由于某些原因,我没有得到任何包含括号的结果 它可以很好地处理以
=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)