Home » excel » Excel: search if a specific text exists in a column

Excel: search if a specific text exists in a column

Posted by: admin May 14, 2020 Leave a comment


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.

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.

Thanks very much for your help!

How to&Answers:

Use array formula like this:


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


Try This :

=countif(a:a,"*" & b2 & "*")>0  gives you result in True/Flase

To get the occurrence

=countif(a:a,"*" & b2 & "*")

To get YES/NO

=if(countif(a:a,"*" & b2 & "*")>0,"YES","NO")