Thanks for the formula. I was hoping for an actual formula and some actual (or realistic) sample data that I have been asking for.
The reason is that, depending on what you actual data is like (at the moment I have no idea), the CF formula you posted may not give you the results you want.
Your original post said you wanted to search the column for "words". This formula does not search for "words" in the traditional meaning.
Here is an example of that formula structure searching column M for "cat", "apple" or "dog". Whilst it correctly highlights M4 and M9, it falsely highlights M6 and M7 if you are looking for the
words "cat" and "apple".
CF Sample 1
<colgroup><col style="font-weight:bold; width:30px; "><col style="width:144px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="bgcolor: #92d050"]cat[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="bgcolor: #92d050"]Don was scathing[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="bgcolor: #92d050"]I like pineapples[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]
[TD="bgcolor: #92d050"]red dog[/TD]
</tbody>
Conditional formatting |
Cell | Nr.: / Condition | Format | M3 | 1. / Formula is =COUNT(SEARCH("cat",M3),SEARCH("apple",M3),SEARCH("dog",M3)) | |
<tbody>
[TD="bgcolor: #92d050"]Abc |
<tbody>
[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
If that is an issue for you, then a little more is required:
CF Sample 2
| M |
pear | |
| |
house | |
Don was scathing | |
I like pineapples | |
plum | |
| |
<colgroup><col style="font-weight:bold; width:30px; "><col style="width:144px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="bgcolor: #92d050"]cat[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]
[TD="bgcolor: #92d050"]red dog[/TD]
</tbody>
Conditional formatting |
Cell | Nr.: / Condition | Format | M3 | 1. / Formula is =COUNT(SEARCH(" cat "," "&M3&" "),SEARCH(" apple "," "&M3&" "),SEARCH(" dog "," "&M3&" ")) | |
<tbody>
[TD="bgcolor: #92d050"]Abc |
<tbody>
[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Further, if the column M cells can contain punctuation marks, the task of finding
words is complicated further. If that is an issue for you, you may want to provide a small set of realistic sample data.