apply conditional formatting of a cell to all coloumn

Occasional Contributor

I want to apply this format 


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

the cell name each time 




8 Replies



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




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


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




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


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




Okay nearly what i'm trying to do


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


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