Work days difference between 2 dates.
I think this will help you:
=(NETWORKDAYS(A1,B1)-2)*8/24+((WEEKDAY(A1,2)<6)*(MAX(0,TIME(17,0,0)-MOD(A1,1))))-((WEEKDAY(A1,2)<6)*(MAX(0,TIME(8,0,0)-MOD(A1,1))))+((WEEKDAY(B1,2)<6)*(MAX(0,MOD(B1,1)-TIME(8,0,0))))-((WEEKDAY(B1,2)<6)*(MAX(0,MOD(B1,1)-TIME(17,0,0))))
I saw it on a post recently. The idea is quite brilliant; I certainly
didn't come up with the concept...
Anyway, hope it helps you out,
Ryan--
--
RyGuy
"Jeremy" wrote:
Please help me. I need to find the time elapsed for workdays only between a
column of dates and times (available in one column or two) and a fixed date
and time. I only need hours of a work day. I have gotten so far as to get
the whole number of workdays elapsed, but I need more precise data than that.
03373
|