Conditional Format Dates 'Prior To' or '12 Months After' a specified date

Hadders

New Member
Joined
Apr 15, 2013
Messages
2
Hello

I've search the forums and tried multiple formulas but no success so far. So decided to post my question and pray that I don't get heckled for have missed the obvious solution...

I have a column of dates that relate to lease events. I want a Conditional Format that highlights cells with dates that fall either before the current date (a cell reserved with =TODAY()) or 12 months after the current date.

Many thanks for any help received.

Cheers
Hadders
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hello,

I have a solution which uses the EDATE function, but for some reason I can't get it to work in the conditional formatting box, so therefore an extra step is required.

With the current date in A1 and the list of dates in column C, from D1 enter the formula and copy downwards:
D1 =OR(C1 < $A$1,EDATE($A$1,12) < C1)
Highlight all the dates, go to Format, conditional Formatting, Formula is, then enter =D1=TRUE, choose colour as required.

I hope this helps.
 
Upvote 0
Hi,

Based on the following sample data in COLUMN A, is this what you would ecpect to be highlighted?...

Excel Workbook
ABCDEFG
1Dates15/04/2013No of days +/-Less than Today12 months +
205/01/2013-100TRUEFALSE
316/11/2012-150TRUEFALSE
427/09/2012-200TRUEFALSE
508/08/2012-250TRUEFALSE
619/06/2012-300TRUEFALSE
730/04/2012-350TRUEFALSE
815/04/20130FALSEFALSE
904/06/201350FALSEFALSE
1024/07/2013100FALSEFALSE
1112/09/2013150FALSEFALSE
1201/11/2013200FALSEFALSE
1321/12/2013250FALSEFALSE
1409/02/2014300FALSEFALSE
1531/03/2014350FALSEFALSE
1620/05/2014400FALSETRUE
1709/07/2014450FALSETRUE
1828/08/2014500FALSETRUE
19
Sheet5


The formulas in E2 and F2 can be used in Conditional Formatting.

I hope that helps.

Ak
 
Upvote 0
Yes that would work as does the answer provided by miss_ell, many thanks to you both.

However having run both solutions the problem I now have is that it wipes out the other conditional format I have in the sheet.

As it's a large sheet, I've got an alternate row shading conditional format in it to help when reading across multiple columns.

In the Date column I wanted to highlight the dates needed in a red font. I've cleared the border and shading formats.

Unfortunately this now also wipes out the alternate row shading. I suspect this maybe another problem entirely (i.e.; can you run two conditional formats at the same time in the same cells?)

Cheers
Hadders
 
Upvote 0
Hi Hadders.

If I understand you correctly, do you mean something like this?...

Excel Workbook
ABCDEFG
1DatesNo of days +/-Less than Today12 months +*15/04/2013*
205/01/2013-100TRUEFALSE***
316/11/2012-150TRUEFALSE***
427/09/2012-200TRUEFALSE***
508/08/2012-250TRUEFALSE***
619/06/2012-300TRUEFALSE***
730/04/2012-350TRUEFALSE***
815/04/20130FALSEFALSE***
904/06/201350FALSEFALSE***
1024/07/2013100FALSEFALSE***
1112/09/2013150FALSEFALSE***
1201/11/2013200FALSEFALSE***
1321/12/2013250FALSEFALSE***
1409/02/2014300FALSEFALSE***
1531/03/2014350FALSEFALSE***
1620/05/2014400FALSETRUE***
1709/07/2014450FALSETRUE***
1828/08/2014500FALSETRUE***
19*******
Sheet5


You don't need to use Conditional Formatting to achieve the banded rows (they do go across the whole table, but are not being displayed as such!!)
Highlight your range/table of data.
Press alt H T and select the style you want your range/table of data to look like.
You will then only need to apply the CF for the dates.

I hope that helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,207,261
Messages
6,077,363
Members
446,280
Latest member
Danielosama

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