function that searches for words

Copper Contributor

A1: abc

A2: acb

A3: aaa

...

B1:  123

B2:  312

B3:  333

...

C1:C3 are words that need to be found in A1:A3 and B1:B3.

if any of the words in C1:C3 are found in A1:A3 or B1:B3 the function should return D4(or any other cell) else "no words found".

 

is that possible?

thank you

1 Reply

 

=IF(SUM(COUNTIF(A1:A3,C1:C3))+SUM(COUNTIF(B1:B3,C1:C3)),D4,"now words found")

@jako000