如何使用查询单元格包含文本的 Select 行

How to Select Rows Using Query Where Cells Contain Text

如果行中包含来自第 12 列(此列包含地址)的任何文本 and/or 数字,我正在使用查询函数复制行。第 12 列有时有空白单元格,所以我只想在该列中列出地址时复制整行。我见过一些公式,它是用来提取特定单词的,而不是一般的一系列数字和字母。

这是我目前的情况:

=QUERY(QUERY('Zapier Tax Leads'!$A:$AQ0000000,"SELECT A, B, C, D, E, F, G, H, I, J, K",1), "SELECT * WHERE Col12 contains "TEXT",1")

我得到一个 Formula parse error.,我假设它来自 "SELECT * WHERE Col12 包含 "TEXT" 部分。
有什么建议吗?

编辑 (在之后)

Can we add to this function and use other columns? i.e. "WHERE L & A & B is not null"

可以。
不过要注意语法。
WHERE L is not null and A is not null and B is not null
意思是,您必须为每个要使用它的列使用 is not null

请详细阅读 where 子句


你(可能)需要的是下面的公式

=QUERY('Zapier Tax Leads'!A2:Z,"SELECT A, B, C, D, E, F, G, H, I, J, K WHERE L is not null",1)

WHERE L is not null 表示只有当 L.
列的行中有值时,查询才会带入行 换句话说,它将带来不为空的行。

(请根据您的需要调整范围。)