apply conditional formatting of a cell to all coloumn

Copper Contributor

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_0-1652480896300.png

 

8 Replies

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

@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

HassanBosha_0-1652526145856.png

 

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

No, I meant the dates in column B
and yes they are sorted I just want that the date of the current day to be shown at first exactly after the Date cell

@HassanBosha 

To do that, assuming your dates start from cell B5 then select the date range and make a new rule for conditional formatting using the formula given below and click on Format on the conditional formatting window, go to the Number Tab and then to Custom and set the number format as ;;; (three semi-colons).

 

=B5<TODAY()

@Subodh_Tiwari_sktneer 

Okay nearly what i'm trying to do

HassanBosha_0-1652538318881.png

I'm trying to make the current date at the top followed by the upcoming days

also trying to make it easy to expand all of the whole rows easily like toggling 

Like one click it expands so I can get the whole column all things are visible

another click makes the rows invisible until the row of the current date

@HassanBosha 

You may use in conditional formatting applied to column J use in rule formula references on values in column B .

I'm sorry but can you clarify more or show me the steps