I need to calculate working hours between specific times. The formula I am currently useing, uses the same start of working day and end of working day regardless of the weekday.
My current formula is: =(INT(H5)-INT(F5))*(Z$1-Y$1)+MEDIAN(MOD(H5,1),Y$1,Z$1)-MEDIAN(MOD(F5,1),Z$1,Y$1)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
This is based on…. (even if start and end times are outside the start and end working hour range)<o></o>
<o></o>
f5 = Start date and time
h5 = End date and time
y1 = start of working day eg. 08:00
z1 = end of working day e.g 18:00<o></o>
<o></o>
I need to change it so that I can make provision for the "different" working hours on SAT, SUN and public holiday's: (and also if start and end times are outside the range)<o></o>
<o></o>
f5 = Start date and time
h5 = End date and time<o></o>
y1 = start of working day eg. 08:00 (Mon to Fri)
z1 = end of working day e.g 18:00 (Mon to Fri)<o></o>
<o></o>
y2 = start of working day 09:00 (SAT)<o></o>
Z2 = end of working day 13:00 (SAT)<o></o>
<o></o>
Y3 = start of working day 10:00 (SUN)<o></o>
Z3 = end of working day 15:00 (SUN)<o></o>
<o></o>
Y4 = start of working day 07:00 (Public Holiday)<o></o>
Z4 = end of working day 11:00 (Public Holiday)
1. So, if a project starts at 06:00 in the morning (MON), and ends at 10:00 on the same day, then the hours elapsed are only 2.
2. If project starts at 07:00 (SAT) and ends 12:00 (SUN), then hours elapsed would be 6hrs.
Hope I have made sense.... look forward to a reply.....
<!-- / message -->
My current formula is: =(INT(H5)-INT(F5))*(Z$1-Y$1)+MEDIAN(MOD(H5,1),Y$1,Z$1)-MEDIAN(MOD(F5,1),Z$1,Y$1)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
This is based on…. (even if start and end times are outside the start and end working hour range)<o></o>
<o></o>
f5 = Start date and time
h5 = End date and time
y1 = start of working day eg. 08:00
z1 = end of working day e.g 18:00<o></o>
<o></o>
I need to change it so that I can make provision for the "different" working hours on SAT, SUN and public holiday's: (and also if start and end times are outside the range)<o></o>
<o></o>
f5 = Start date and time
h5 = End date and time<o></o>
y1 = start of working day eg. 08:00 (Mon to Fri)
z1 = end of working day e.g 18:00 (Mon to Fri)<o></o>
<o></o>
y2 = start of working day 09:00 (SAT)<o></o>
Z2 = end of working day 13:00 (SAT)<o></o>
<o></o>
Y3 = start of working day 10:00 (SUN)<o></o>
Z3 = end of working day 15:00 (SUN)<o></o>
<o></o>
Y4 = start of working day 07:00 (Public Holiday)<o></o>
Z4 = end of working day 11:00 (Public Holiday)
1. So, if a project starts at 06:00 in the morning (MON), and ends at 10:00 on the same day, then the hours elapsed are only 2.
2. If project starts at 07:00 (SAT) and ends 12:00 (SUN), then hours elapsed would be 6hrs.
Hope I have made sense.... look forward to a reply.....
<!-- / message -->