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.

[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]SOC[/TD]
[TD="align: center"]F2F[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]5/1/2013[/TD]
[TD="align: center"]2/25/2013[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]1/15/2012[/TD]
[TD="align: center"]12/28/2011[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]8/6/2013[/TD]
[TD="align: center"]9/12/2013
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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>
[TD="class: xl65, width: 218"][/TD]
 
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,471
Members
453,726
Latest member
JoeH57

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