Conditional Formatting based on dynamic Date

Modifier1000

New Member
Joined
Sep 11, 2014
Messages
8
Hello all, brand new to the site.</SPAN>

Anyways, </SPAN>I have an Excel file with conditional formatting (screenshot attached), if the condition is true, the entire row shall be highlighted (to Green) and have a top/bottom border.</SPAN></SPAN>

What I really need is for the condition to format based on the following criteria:</SPAN>


-Highlight (Green) w/borders if the day for the previous month is greater than the 14th</SPAN>.</SPAN>
Note1: ‘Previous month’ is the month before the Excel file was created.
Note2: The date is in the format: Date [3/14/01]</SPAN>


Conditional_Formatting_based_on_Dynamic_Date.png
[/URL][/IMG]

Any help is much appreciated.</SPAN>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi,
try =AND(T3>41806,T3<41820)
 
Last edited:
Upvote 0
Thank you for responding, but doesn't the formula you provided only evaluate between two specific dates (6/16/2014 & 6/30/2014)?

I need to evaluate only on the days (15th thru End-of-Month) based on the previous month from whenever the file was created.

For instance:
If the file was created on March, I need the Condition based the previous month (February) for the 15th thru End-of-Month.
If the file was created on April, I need the Condition based the previous month (March) for the 15th thru End-of-Month.
If the file was created on May, I need the Condition based the previous month (April) for the 15th thru End-of-Month.
...and so on.
 
Upvote 0
try =AND(DAY(T3)>=15,T3<=EOMONTH(T3,0))
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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