Conditional Formatting using dates

EX7EY

New Member
Joined
Feb 5, 2019
Messages
4
Hi all, I am trying to figure out the correct formula to change a cell colour based on how far away I am from a date.

For example, In column G I have due dates, and I would like the corresponding cell from the same row in column A to turn either green Amber or red depending on how close we are to the due date in column G.

So if today's date is within 7 days of the due date in G2, I would like A2 to fill red, within 14 days amber, and over 14 days green. I would like this replicated all the way down the column.

Hopw this makes sense, any help would be much appreciated. Thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi,

3 separate CF Formula rules for Column A:


Book1
ABCDEFG
1Within 7 days8 to 14 daysover 14 days
2FALSETRUEFALSE2/19/2019
3FALSEFALSETRUE2/28/2019
4TRUEFALSEFALSE2/10/2019
5
6for REDfor AMBERfor GREEN
Sheet540
Cell Formulas
RangeFormula
A2=TODAY()+7>=G2
B2=G2=MEDIAN(TODAY()+8,TODAY()+14,G2)
C2=TODAY()+14
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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