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

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Conditional formatting rule for cell A2

Code:
1: =A2<TODAY()   --> fill red
2: =b2>0             --> fill green
 
Upvote 0
sorry, the forum is screwing up again, first rule should be if a2 is less than today then fill red
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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