Forum Discussion

Elva_Tanguerre's avatar
Elva_Tanguerre
Copper Contributor
Mar 21, 2024

Conditional formatting based on multiple cell formulas

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 
  
  
  
  • 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.

  • SandeepMarwal's avatar
    SandeepMarwal
    Brass Contributor

    Elva_Tanguerre 

     

    Select the range where you want to apply conditional formatting:

     

    Select conditional formatting--> new rule

     

    choose :

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

     

    choose your format and click OK.

     

     

     

    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.

     

     

Resources