如果语句参考多个带有字符串的单元格

发布于 2025-02-12 17:46:38 字数 133 浏览 2 评论 0原文

如果(a1 = c1:c10),1,0)我有方程式。 单元格范围C1:C10是每个单个字符串的单元格(SO c1​​ ='word1',c2 ='word2'等。 我想看看A1是否匹配其中任何一个。这个方程式对字符串不起作用,因此希望对此获得一些指示。

I have equation If(A1=c1:c10),1,0)).
The cell range C1:C10 are cells that each contain an individual string (so cell c1 = 'word1', c2 = 'word2' etc.
I want to see if A1 matches any of these. This equation doesn't work for strings, so was hoping to get some pointers on this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

止于盛夏 2025-02-19 17:46:38

在下面的Promula-

=IF(ISNUMBER(MATCH(A1,$C$1:$C$10,0)),1,0)

Try below formula-

=IF(ISNUMBER(MATCH(A1,$C$1:$C$10,0)),1,0)

enter image description here

ㄟ。诗瑗 2025-02-19 17:46:38

我想看看A1是否匹配了这些

您可以计算多少次单元A1中的单词出现在范围C1:C10中。如果计数为零,则意味着没有匹配,否则有1个或更多匹配。只需在细胞B1中使用Countif与IF合并:

=IF(COUNTIF($C$1:$C$10;A1)=0;0;1)

enter image description here

I want to see if A1 matches any of these

You can count how many times the word in cell A1 appears in range C1:C10. IF the count is zero, it means there is no match, else there is 1 or more matches. Just use COUNTIF combined with IF in cell B1:

=IF(COUNTIF($C$1:$C$10;A1)=0;0;1)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文