conditional formatting based on a date in a cell above

already

Board Regular
Joined
Nov 11, 2008
Messages
179
Hi,
I have a row (1) with the dates of the month and below a row (2) with values.
I want to format the second row based on the date in row 1.
If the date is before today or not.

How can I do this?

Thanks in advance

Kind regards

Al
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
conditional formatting with formula
if dates in A1 to J1, select A2 and drag to J2 and then goto conditional formatting.
go with formula

Code:
=A1=today()-1
 
Upvote 0
Hi Stridhan,
Thanks for your reply. But this formula highlight only the cell before today.

The goal is to highlight all the cells before today and afhter today.

Kind regards

Al
 
Upvote 0
remove all ", couldnt type the formula in here without them..

Code:
=or(today()"<"a1,today()">"a1)
 
Upvote 0
Hi Stridhan,
Thanks again. Excel didn't accept the formula and I'cant figure it out what's wrong

Kind regards

Al
 
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,010
Members
449,280
Latest member
Miahr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top