7
votes

I'm trying to use conditional formatting to highlight all rows that contains a specific value in any of the cells of that row.

For example, if this is the spreadsheet:

     A            B            C             D           E
1    Town         Baseball     Basketball    Football    Soccer
2    Barksdale    Cardinals    Lions         Tigers      Lightning
3    Clinton      Bluejays     Bears         Cardinals   Tornadoes
4    Denton       Giants       Tigers        Blues       Hornets

I would like to highlight every row that contains 'Blue' anywhere in the row. In this case, it should highlight the "Clinton" row, because it has "Bluejays", and the "Denton" row, because it has "Blues".

I'm trying this as the formula:

=SEARCH("Blue",A1)

And I'm applying it to:

=$1:$1048576

Unfortunately, that highlights the specific cell containing "Blue", but not the entire row.

I've seen posts about formatting the entire row based upon the value of one cell, and I've seen posts about formatting one cell based upon the value of other cells in the row, but I can't seem to figure out how to combine those to work in my situation.

Any ideas?

1

1 Answers

10
votes

Try this formula for conditional formatting:

=COUNTIF(1:1,"*blue*")

enter image description here