Conditional formatting based on past and future dates

Helen842000

New Member
Joined
Mar 28, 2011
Messages
34
Hi all,

I'm struggling to know the right order to put the conditions in, if anyone could help please.

I would like empty cells to stay blank/white
Any cells with dates in the past or in the next two weeks (i.e past due or due soon) to turn RED
Any dates not due in the next two weeks can stay blank/white.

I've tried every combination of TODAY()+14 or -14 but all I end up with is a red column of blank cells grrr!

Any help would be greatfully appreciated.

Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Any cells with dates in the past or in the next two weeks (i.e past due or due soon) to turn RED
Let's say it is cell E1 you are checking. This is the formula I would use:
Code:
=AND(E1 < TODAY()+14, E1 > 0)
 
Upvote 0
Thanks!

How would I do that within the CF box? Would I use Cell Value is or Formula IS? I'm doing it to a whole column
Cheers!
 
Upvote 0
Since it contains a cell reference to the cell you want to format, you will use the "Formula Is" option.
If you highlight the whole range you wish to apply it to, then go to Conditional Formatting and write the formula as is you were only applying it to the first cell of your highlighted range, it will automatically adjust your formula for the rest of your range.
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,656
Members
449,045
Latest member
Marcus05

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