Solved

Conditionally format dates in Column A

Posted on 2015-02-12
6
56 Views
Last Modified: 2015-02-13
Dear Experts:

Column A of the current worksheets has entries with dates

I would like to apply conditional formatting to these dates with the following requirements:

If the date in Column A is within the next 10 days (from now) the date should get red shaded...
if the date in Column A is today the date should get yellow shaded ...
... and as soon as the date in Column A is in the past the Shading should change to green.

Help is much appreciated.

Thank you very much in advance

Regards, Andreas
0
Comment
Question by:AndreasHermle
6 Comments
 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 200 total points
ID: 40605769
The second one is:

=int(a2)=int(now())
0
 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 200 total points
ID: 40605773
The first one is

=and(int(A2)>int(now()),int(A2)<=int(now())+10)
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 300 total points
ID: 40605775
If they are just dates (no times) then the conditions are, in order:

Cell Value <TODAY()
Cell Value =TODAY()
Cell Value <=TODAY()+10

and make sure to check the Stop If True option for all of them.

Note: if you have blank cells, you will need to use a formula for the first condition using:
=AND($A1<>"",$A1<TODAY())
assuming applied to A1 onwards.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 200 total points
ID: 40605779
The third is

=int(a2)<int(now())
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40605862
You only need to specify two of the conditions, the third can be the default hard format colour of the cell.
0
 

Author Closing Comment

by:AndreasHermle
ID: 40607796
Dear all,

both solutions work, but a Rory' is the most simple, I guess. Anyway, thank your very much for your great and overwhelming support. I really appreciate your professional expertise. Regards, Andreas
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now