[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
Solved

# Conditionally format dates in Column A

Posted on 2015-02-12
Medium Priority
65 Views
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
Question by:AndreasHermle
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions

LVL 24

Assisted Solution

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

=int(a2)=int(now())
0

LVL 24

Assisted Solution

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

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

LVL 85

Accepted Solution

Rory Archibald earned 1200 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

LVL 24

Assisted Solution

Phillip Burton earned 800 total points
ID: 40605779
The third is

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

LVL 33

Expert Comment

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

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

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
###### Suggested Courses
Course of the Month13 days, 4 hours left to enroll

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

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