Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to search a range for a matching word within a string?

$
0
0

What I'm trying to do is this:

Cell A1 contains a sentence. The dog had black spots all over

Column B contains a range of keywords. Let's say B7 contains dog.

What would be the formula to get C1 to return dog if the string to search was A1 and the range containing any matching words was in column B?

So

  1. look at A1 for the string
  2. search column B for any matching words
  3. output matching word/words to C1

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>