# apply conditional formatting of a cell to all coloumn

Occasional Contributor

# 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

8 Replies

# Re: apply conditional formatting of a cell to all coloumn

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.

# Re: apply conditional formatting of a cell to all coloumn

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

# Re: apply conditional formatting of a cell to all coloumn

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.

# Re: apply conditional formatting of a cell to all coloumn

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

# Re: apply conditional formatting of a cell to all coloumn

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

# Re: apply conditional formatting of a cell to all coloumn

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

# Re: apply conditional formatting of a cell to all coloumn

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

# Re: apply conditional formatting of a cell to all coloumn

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