google-sheets - Google Sheets - Check if any string from column is in certain cell?
问题描述
I have a column of strings, e.g.
A1: A
A2: B
A2: C
And I want a formula to check if any of those strings are in another cell, say B2. Is this possible with google sheets? FIND
only seems to work on single strings and doesn't appear to accept a range of cells.
解决方案
如果您的字符串在 ColumnA 中(在单独的单元格中),那么可能:
=REGEXMATCH(B2,textjoin("|",1,A1:A))
(区分大小写。)
推荐阅读
- makefile - GNU Make:使用带有隐式规则的通配符函数
- python - 如何使用 sklearn 中的 DBSCAN 方法进行聚类
- reactjs - React hooks 和 Material-UI:Snackbar 显示一次但不再显示
- django - Django 注册序列化器
- r - 如何将某些项目从长列表转换为 R 中的数据框?
- deep-learning - 语义分割数据集组织
- javascript - 如何在 JavaScript 或 Angular 中为 firefox 获取 window.browser 对象?
- java - 如何获得加载数据以停止闪烁的时间?
- c# - Word 互操作 - 将嵌入的形状另存为图像
- gmail - 已发布的 Gmail 附加组件未显示在移动 Gmail 应用程序上