Conditional Formatting Date Formula

Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
:confused: I have a table with 2000 cells, all of then has dates,
any cells in this table need to show:

1-blue between 30 days before today and stay blue until today,

2-green between 60 days before today and stay green until 31 days before today, then turn blue, until today,

3-any cell with a today date and after, turn red.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
highlight the range and then do conditional formatting -- setting formulas as follows

condition 1

=TODAY()-A1<=0

condition 2

=TODAY()-A1<=30

condition 3

=TODAY()-A1<=60

alter A1 to be leftmost cell in your range and obviously adjust your formats.
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,167
Members
448,870
Latest member
max_pedreira

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