首页 > 解决方案 > Google 表格的查询以查找包含在字符串末尾的内容

问题描述

例如,当它是字符串的结尾但不在查询的中间时,如何指示包含“xyz”

xyzabc应该返回 false
abcxyz应该返回 true

在查询结果中。

标签: google-sheetsgoogle-sheets-formulagoogle-sheets-query

解决方案


QUERY你可以使用ends with像:

=QUERY(A:D, "select A,B where D ends with 'xyz'", 0

https://developers.google.com/chart/interactive/docs/querylanguage#where


推荐阅读