J
Joe Cook
=IF(AND(INT(E8)=INT(G8),NOT(ISNA(MATCH(INT
(E8),HOLIDAYLIST,0)))),0,ABS(IF(INT(E8)=INT(G8),ROUND(24*
(G8-E8),2),
(24*(DAYEND-DAYSTART)*
(MAX(NETWORKDAYS(E8+1,G8-1,HOLIDAYLIST),0)+
INT(24*(((G8-INT(G8))-
(E8-INT(E8)))+(DAYEND-DAYSTART))/(24*(DAYEND-DAYSTART))))+
MOD(ROUND(((24*(G8-INT(E8)))-24*DAYSTART)+
(24*DAYEND-(24*(E8-INT(E8)))),2),
ROUND((24*(DAYEND-DAYSTART)),2))))))
The above formula was taken from Chip Pearsons site and
works well, we're calculating the work hours between two
dates and times entered as '19/05/04 12:54', the problem
is that some of the cells have the following
Start Time Finish Time Turnaround
17/05/2004 09:00 17/05/2004 10:00 3.0
17/05/2004 15:00 #VALUE
18/05/2004 09:00 18/05/2004 12:00 3.00
Some of the cases are still open, thus causing a #VALUE
to appear, this in turn causes problems for follow on
formulas
Is there any way to add an is ERROR formula to return a 0
value?
Many Thanks
Joe
(E8),HOLIDAYLIST,0)))),0,ABS(IF(INT(E8)=INT(G8),ROUND(24*
(G8-E8),2),
(24*(DAYEND-DAYSTART)*
(MAX(NETWORKDAYS(E8+1,G8-1,HOLIDAYLIST),0)+
INT(24*(((G8-INT(G8))-
(E8-INT(E8)))+(DAYEND-DAYSTART))/(24*(DAYEND-DAYSTART))))+
MOD(ROUND(((24*(G8-INT(E8)))-24*DAYSTART)+
(24*DAYEND-(24*(E8-INT(E8)))),2),
ROUND((24*(DAYEND-DAYSTART)),2))))))
The above formula was taken from Chip Pearsons site and
works well, we're calculating the work hours between two
dates and times entered as '19/05/04 12:54', the problem
is that some of the cells have the following
Start Time Finish Time Turnaround
17/05/2004 09:00 17/05/2004 10:00 3.0
17/05/2004 15:00 #VALUE
18/05/2004 09:00 18/05/2004 12:00 3.00
Some of the cases are still open, thus causing a #VALUE
to appear, this in turn causes problems for follow on
formulas
Is there any way to add an is ERROR formula to return a 0
value?
Many Thanks
Joe