Conditional format based on current calendar month/date

Sven62

Active Member
Joined
Feb 21, 2012
Messages
485
Hi, I have a cell with user entered date in it. This date needs to updated at least once every calendar month. So if the date entered is 6/11/15 then the cell needs to be updated at least once in July sometime.

So, I want the cell color to prompt them when that following month is winding down. If the displayed date is 06/11/15 then I want the cell fill color to turn yellow when 7/21 rolls around and red on 7/28. I need it to do this for all months. If the entered date is 10/01/15 then I need it to go yellow on 11/21 and red on 11/28. Get it? Did I explain that well enough?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
You can use these formulas in conditional formatting, assuming date in B2

For red:

=TODAY()>=EOMONTH(B2,0)+28

for yellow:

=TODAY()>=EOMONTH(B2,0)+21

Make sure the red condition is listed first (they are normally shown in reverse order to the order they are added, so add yellow first....or change the order after they are added)
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,024
Members
448,543
Latest member
MartinLarkin

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