Excel:搜索列中是否存在特定文本 [英] Excel: search if a specific text exists in a column

查看:123
本文介绍了Excel:搜索列中是否存在特定文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两栏. A列中的每个单元格包含完整的句子,B列中的每个单元格包含一个单词或短语.我想检查B列中每个单元格的内容是否出现在A列中的一个单元格中-它可以出现在A列中的多个单元格中还是不出现在任何单元格中.就我的目的而言,输出只需要是是"或否"(并且应该在C列中吐出),但是返回每个B列单词出现在A列某处的次数将很简洁.

I have two columns. Each cell in column A contains a full sentences and each cell in column B contains a word or phrase. I would like to check if the contents of each cell in column B appears in one of the cells in column A---it could appear in multiple cells in column A or in no cells. The output just needs to be a yes or no (and should be spit out in column C) for my purposes, but it would be neat to return the number of times each column B word came up somewhere in Column A.

到目前为止,我还没有弄清楚如何获取一个离散的字母字符串(已经打印在一个单元格中)并搜索列中的某个范围.不知道这是否超出了常规的excel功能.

So far I haven't figured out how to take a discrete string of letters (already printed in one cell) and search across a range in a column. Not sure if this is beyond the regular excel functionality.

非常感谢您的帮助!

推荐答案

使用像这样的数组公式:

Use array formula like this:

=SUM(IF(ISERROR(SEARCH(B1,A:A,1)),0,1))

在编辑栏中输入,然后按CTRL + SHIFT + ENTER.
希望这可以帮助. 将公式放入C.

enter in formula bar then press CTRL+SHIFT+ENTER.
Hope this helps. Put formula in C.

这篇关于Excel:搜索列中是否存在特定文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆