In Excel 2011 Mac (it seems to be important since other referenced solutions in stackoverflow for excel windows or mac older versions don't seem to work).
I want to apply conditional formatting so when a cell in column D includes a word "student" the full row which includes the cell gets a color format (blue color for the text white/empty filling for the cell).
I have tried INDIRECT and some other formulas but I don't get it right. Only the cell that includes the word gets the formatting, not the whole row (that is, the rest of the cells on the same row where the pattern matches).
Admittedly, this answer is based on the Windows version but it should still work for you.
(Pictures taken from mix of Windows and Mac versions where possible.)
Select Manage Rules... from the Conditional Formatting menu.
Click the New Rule... button.
Select Use a formula to determine which cells to format, enter the formula as shown below, and then click the Format... button to choose your conditional format (blue text with no fill).
- You said you were looking for the word "student" in column D, and I have assumed that row 3 is the first row that you want this conditional formatting to be applied. Just change the 3 to another row number if this is not the case.
If the word "student" is not the only thing in your target cell, then use the following formula instead:
=ISNUMBER(SEARCH("student",$D3))
Then type a range into the Applies to textbox as shown.
- In this example, we assume that row 3 is the first row and row 400 is the last row that you want the conditional formatting to be applied to.
- Note that we did not include column letters in the formula since we want every column of each row to be included.
Click OK and you should be done.
I hope this works for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With