HaroldDavis
New Member
- Joined
- Aug 15, 2011
- Messages
- 29
Hi,
I have 2 columns with dates. I want to highlight a third column if there is less than 21 days between the two dates (e.g. below).
<TABLE style="WIDTH: 175pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=233><COLGROUP><COL style="WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 3181" width=87><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 2998" width=82><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>Apr 26, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>Apr 26, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 3, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 10, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 17, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 10, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Sep 13, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 17, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Sep 13, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>Apr 29, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 width=82 align=right>Oct 20, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 31, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Apr 5, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR></TBODY></TABLE>
Thanks.
I have 2 columns with dates. I want to highlight a third column if there is less than 21 days between the two dates (e.g. below).
<TABLE style="WIDTH: 175pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=233><COLGROUP><COL style="WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 3181" width=87><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 2998" width=82><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>Apr 26, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>Apr 26, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 3, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 10, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 17, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Jun 23, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 10, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Sep 13, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 17, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Sep 13, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>Apr 29, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 width=82 align=right>Oct 20, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: #eeeeee; WIDTH: 65pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl66 height=17 width=87 align=right>May 31, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 62pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl67 width=82>Apr 5, 2011</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: #eeeeee; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl65 width=64>shipped</TD></TR></TBODY></TABLE>
Thanks.