Conditional Formatting with dates

TAKIS

New Member
Joined
Sep 19, 2013
Messages
1
Dear all hello,

I am trying to add conditional formatting in one of my columns as follows:

1)when the date in column A passed the today's date and there is no date in column B - turn the cell red - i used the following formula:=A2<today()

2)when the date in column A is greater then today's date and there is no date in column B - the cell remains with no colour

3)when I add a date in column B (either less or higher) I would like cell A to turn green from either red colour (1) or no colour (2).

And it is that last step I do which I cant make right. I can make it work (and a cell will turn green) only when date in column A is less than the date in column B. But, when the date in column A is greater than the date in column B then it still remains red.

Any comments/advice on the functions I have to use would be greatly appreciated.

Thank you very much for your time!</today()
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Jubjab

Well-known Member
Joined
Jan 3, 2007
Messages
993
Conditional formatting rule for cell A2

Code:
1: =A2<TODAY()   --> fill red
2: =b2>0             --> fill green
 

Jubjab

Well-known Member
Joined
Jan 3, 2007
Messages
993
sorry, the forum is screwing up again, first rule should be if a2 is less than today then fill red
 

Watch MrExcel Video

Forum statistics

Threads
1,128,078
Messages
5,628,536
Members
416,323
Latest member
65563

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
Top