Forum Discussion

HassanBosha's avatar
HassanBosha
Copper Contributor
May 13, 2022

apply conditional formatting of a cell to all coloumn

I want to apply this format 

=TODAY()-$J$4>300 

for the whole column without the need to repeat this formula for each cell and changing 

the cell name each time 

 

 

  • HassanBosha 

     

    Let's assume that you want to apply the conditional formatting to the range J4:J6, then select the range J4:J6 and then make a new rule for conditional formatting using the formula given below...

     

    =TODAY()-J4>300

     

    Notice the J4 in the above formula which must be the first cell in the selected range J4:J6.

    • HassanBosha's avatar
      HassanBosha
      Copper Contributor

      Subodh_Tiwari_sktneer 

      How about if I want to highlight the cell of the current date on the calendar in the column
      and make all the above dates invisible till I show them ?

      other meaning the current date is highlighted at the top and above it the previous dates but invisible

       

      • SergeiBaklan's avatar
        SergeiBaklan
        MVP

        HassanBosha 

        It depends dates are sorted or not. If sorted, two rules applied to J4:J30 or so.

        =$J4=TODAY() to highlight current date

        =$J4<TODAY() and select same background and font colours.

Resources