Google sheets text

how do i get a text input that says words say that something contains it using google sheets? rightnow all it can say is yes or no but I want it to say what words it contained

I’m not sure I understand your question. Can you give a few examples?