Auto highlight date within specific # of days from another date

Battheman

New Member
Joined
Sep 16, 2013
Messages
1
Hello.
The SOC (start of care) is the date in which my company starts servicing a client, and these clients are required to have a F2F document signed no earlier than 60 days BEFORE the SOC and no later than 30 days AFTER SOC. So if the F2F date falls outside of that range, I need the cell for that F2F date to automatically highlight red. Also, for all the F2F dates that ARE within the range to automatically highlight green.

In the example below, I would want 'B2' & 'B4' to automatically highlight red as they are both outside the range, and 'B3' to highlight green. Anyone know a way to do this? Thanks!

ex.

AB
1SOCF2F
25/1/20132/25/2013
31/15/201212/28/2011
48/6/20139/12/2013

<tbody>
</tbody>
 

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
Set up two conditional formatting rules.

-Select range to format
-Conditional Formatting
-New Rule
-Use FormulaEnter formula for RED

Repeat above and enter formula for green
Excel Workbook
ABCDEF
1SOCF2FConditional Formatting
25/1/20132/25/2013Formula
31/15/201212/28/2011Red ==OR(B2-A230)
48/6/20139/12/2013Green ==AND(B2-A2>=-60,B2-A2
Sheet




<colgroup><col width="218"></colgroup>
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,117
Members
449,993
Latest member
Sphere2215

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