Extend conditional formatting to the entire table

Solved
Nikoko06 Posted messages 6 Status Member -  
Nikoko06 Posted messages 6 Status Member -
Hello everyone and thanks in advance for your help.

Here’s my problem (I’m working on Excel 2010):

I’m trying to format several cells (with green fill) based on the result obtained in another cell. So far, I’m using the following method:

1. I select the cells that I want to format (specifically A4, B4, C4, D4, E4, G4, I4, J4).

2. I use the "Conditional Formatting" function => "New Rule" and select the option "Use a formula to determine which cells to format"

3. I type the following formula: =AND($F$4="yes") and select the green fill.

Indeed, when I type "Yes" in F4, the cells A4, B4, C4... up to J4 turn green. So far, so good.

However, I want to extend the formula to my entire table. Let me explain, I want for F5="Yes" A5, B5...J5 to turn green and likewise for rows 6, 7, 8, etc.

I tried the same approach as above by selecting all the cells at once and replacing the formula with =AND($F:$F="yes"). But it doesn't work.

Please tell me there is a method that saves me from having to copy my formula for each line.

Thanks for your help

Nico

2 answers

melanie1324 Posted messages 1561 Status Member 156
 
Hello,

So here’s how to do it, let’s say your table has 100 rows:

1. I use the "Conditional Formatting" function => "New Rule" and I select the option "Use a formula to determine which cells to format"

3. I type the following formula :=AND($F4="yes") and select the green fill. (there should not be a $ before the 4)

You copy the format and paste it on your table.

If you go back to your CF,
you should see the formula on the left:

=AND($F4="yes") applies to $A$4:$E$100;$G$4:$G$100;$I$4:$J$100
4