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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,085
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi,
try =AND(T3>41806,T3<41820)
 
Last edited:

Modifier1000

New Member
Joined
Sep 11, 2014
Messages
8
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.
 

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,085
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
try =AND(DAY(T3)>=15,T3<=EOMONTH(T3,0))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,669
Messages
5,838,682
Members
430,563
Latest member
Raeyven

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