Conditional formatting based on multiple cell formulas

Copper Contributor

Hello, when a user enter a value in the "Applicable" column in the table below, the cell "Confirmed on" changed color. This is meant to remind them they need to enter a date. I use Conditional Formatting / Use formula.../=$A$9<>"" and it works.

 

However, I am not able to make the cell resume to initial color once the date has been entered. I tried using Conditional formatting still, with formula  =AND($A$9<>"",$B$9<>""). 

 

Also, once this is done, how do you populate all columns with the formatting? Dragging down A1 and B1 does not work. Thank you in advance!

 

PS I do not know VBA. 

 

Applicable Y|NConfirmed on
Y 
  
  
  
2 Replies

@Elva_Tanguerre 

First priority rule for conditional formatting:

=($A9<>"")*($B9<>"")

Second priority rule for conditional formatting:

=$A9<>""

 

These are the rules for conditional formatting in my example. The rules are in order of their priority in the manager for conditional formatting.

 

=$B$9:$B$20

The format is applied to this range in my example.

conditional formatting.png

@Elva_Tanguerre 

 

Select the range where you want to apply conditional formatting:

 

SandeepMarwal_0-1711197723682.png

Select conditional formatting--> new rule

 

SandeepMarwal_1-1711197753442.png

choose :

SandeepMarwal_2-1711197831701.png

Enter the formula: =AND(A2<>"",B2="")

SandeepMarwal_3-1711197846566.png

 

choose your format and click OK.

 

SandeepMarwal_4-1711197879281.png

 

 

this will apply conditional formatting to complete selected range, formula that you write should be valid for first cell of the selection, it will automatically dragged down for rest of the selection.