Hi,
I already have a function which looks at the date and works out what day of the week and by looking at the time of issue, works out if it is between business hours or out of hours.
<TABLE style="WIDTH: 288pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=383 border=0><COLGROUP><COL style="WIDTH: 80pt; mso-width-source: userset; mso-width-alt: 3876" width=106><COL style="WIDTH: 71pt; mso-width-source: userset; mso-width-alt: 3474" width=95><COL style="WIDTH: 68pt; mso-width-source: userset; mso-width-alt: 3291" width=90><COL style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 3364" width=92><TBODY><TR style="HEIGHT: 23.25pt" height=31><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 80pt; BORDER-BOTTOM: gray 1pt solid; HEIGHT: 23.25pt; BACKGROUND-COLOR: transparent" width=106 height=31>Actual Start Time</TD><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 71pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=95>Actual Start Date</TD><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 68pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=90>Day of Week</TD><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 69pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=92>Out of Hours</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl69 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #ece9d8; WIDTH: 80pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=106 height=17>13:00</TD><TD class=xl68 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #ece9d8; WIDTH: 71pt; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent" width=95>02/01/2011</TD><TD class=xl65 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent">Sunday</TD><TD class=xl70 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent" align=middle>TRUE</TD></TR></TBODY></TABLE>
The day of the week is worked out from;
=TEXT(WEEKDAY(AD31), "dddd")
Out of Hours is worked out from;
=OR(WEEKDAY(AD31,2)>5,AC31<8/24,AC31>16.5/24)
The only problem is that although I can use this data to work out weekends and out of business hours (08:00-16:30), it does not take bank holidays into account.
Can anyone suggest a way around this please?
Thanks
David
I already have a function which looks at the date and works out what day of the week and by looking at the time of issue, works out if it is between business hours or out of hours.
<TABLE style="WIDTH: 288pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=383 border=0><COLGROUP><COL style="WIDTH: 80pt; mso-width-source: userset; mso-width-alt: 3876" width=106><COL style="WIDTH: 71pt; mso-width-source: userset; mso-width-alt: 3474" width=95><COL style="WIDTH: 68pt; mso-width-source: userset; mso-width-alt: 3291" width=90><COL style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 3364" width=92><TBODY><TR style="HEIGHT: 23.25pt" height=31><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 80pt; BORDER-BOTTOM: gray 1pt solid; HEIGHT: 23.25pt; BACKGROUND-COLOR: transparent" width=106 height=31>Actual Start Time</TD><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 71pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=95>Actual Start Date</TD><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 68pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=90>Day of Week</TD><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #ece9d8; WIDTH: 69pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=92>Out of Hours</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl69 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #ece9d8; WIDTH: 80pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=106 height=17>13:00</TD><TD class=xl68 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #ece9d8; WIDTH: 71pt; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent" width=95>02/01/2011</TD><TD class=xl65 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent">Sunday</TD><TD class=xl70 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent" align=middle>TRUE</TD></TR></TBODY></TABLE>
The day of the week is worked out from;
=TEXT(WEEKDAY(AD31), "dddd")
Out of Hours is worked out from;
=OR(WEEKDAY(AD31,2)>5,AC31<8/24,AC31>16.5/24)
The only problem is that although I can use this data to work out weekends and out of business hours (08:00-16:30), it does not take bank holidays into account.
Can anyone suggest a way around this please?
Thanks
David