I am using Excel 2003. I have a spreadsheet that contains text. LOTS of text.
I want to search the cells of only one particular column, (column F) and any time Excel finds any one of 21 words that I have identified as important to me, Excel will change the format of that cell, say to a background color of red and font color of white bold.
So for example, if one of the 21 words I am looking for is the string "cat" and the cell contains "he can catch the ball" that cell would be formatted, because the string "cat" is contained in amongst the text in that cell.
I want it to search for any of 21 words that I have identified. I expect the answer is going to be under Format -> Conditional Formatting, and I am pretty sure has to use the logical function OR somehow (can you do 21 ORs?) because of the "3 condition" limitation in Conditional Formatting. But so far I have not been able to figure it out after much searching and experimenting.
Alternatively, if it has to invoke a VBA macro, I'll do that instead.
I tried one word at a time using Conditional Formatting but it erases the previous conditional format. So if I conditionally format for "cat", it highlights all the instances of Cat just fine. But when I subsequently conditionally format for "dog", it unformats all the instances where cat was highlighted and then just highlights Dog. VERY frustrating. Ultimately, I want to end up with a speadsheet where any cell in column F that contains any one of my 21 words is highlighted.
Thanks in advance for your help.
I want to search the cells of only one particular column, (column F) and any time Excel finds any one of 21 words that I have identified as important to me, Excel will change the format of that cell, say to a background color of red and font color of white bold.
So for example, if one of the 21 words I am looking for is the string "cat" and the cell contains "he can catch the ball" that cell would be formatted, because the string "cat" is contained in amongst the text in that cell.
I want it to search for any of 21 words that I have identified. I expect the answer is going to be under Format -> Conditional Formatting, and I am pretty sure has to use the logical function OR somehow (can you do 21 ORs?) because of the "3 condition" limitation in Conditional Formatting. But so far I have not been able to figure it out after much searching and experimenting.
Alternatively, if it has to invoke a VBA macro, I'll do that instead.
I tried one word at a time using Conditional Formatting but it erases the previous conditional format. So if I conditionally format for "cat", it highlights all the instances of Cat just fine. But when I subsequently conditionally format for "dog", it unformats all the instances where cat was highlighted and then just highlights Dog. VERY frustrating. Ultimately, I want to end up with a speadsheet where any cell in column F that contains any one of my 21 words is highlighted.
Thanks in advance for your help.
Last edited: