简体   繁体   中英

How to search multiple cells when the searched value is mixed within other values in the same cell?

I am looking for a keyword that might be inside a range of cells mixed with other words, and then return a true or false value on a different cell.

Example looking for the keyword "red" which is mixed inside other words in different cells:

在此处输入图像描述

In your current table this should work, put in D2 :

=LEN(SUBSTITUTE(LOWER(" "&A2&" "&B2&" "&C2&" "),LOWER(" "&D$1&" "),""))<LEN(LOWER(CONCAT(A2:C2)))+2

try this

=IFERROR(FIND("red";LOWER(A2))>0;IFERROR(FIND("red";LOWER(B2))>0;IFERROR(FIND("red";LOWER(C2))>0;FALSE)))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM