O
Oliver L Randle
A problem that is causing me endless difficulties.
I want to be able to count hours/days in a working week (fine
NETWORKDAYS function and WORKDAYS to add back in ....but) and then ad
the working days back in. I am trying to use workday to add the day
back in but cannot count the days correctly, as I am having to work th
hours out separately.This is to calculate on-hold for SLA time so tha
the deadline is suspended when it is pending the customer
Surprisingly it is the days that are giving me the problem. I am usin
nested IF macros to work out the hours and then add the hours back in t
correct for times that a job is on-hold. I am running separat
calculations to work out hours and mins/days as they are presentin
different problems.
My problem is that I need to be able to count both hours and minute
between 8:00 and 18:00 Monday to Friday, and then add it back in to th
original deadline to defer it. I had thought that th
NETWORKDAYS/WORKDAY combination would do it but they both calculat
days incorrectly for my purposes. I am counting a full day as onl
days that are complete from 8:00am to 18:00 Monday to Friaday and Exce
treats a working day as any hours between one working day and the next.
Correcting by taking away days in the formula only works for deferal
that don't begin or end during a weekend. What I really need is
NETWORKHOURS function that will do the same for hours/mins a
NETWORKDAYS does for days and then I could really simplify the Macro!
Sorry if this is all a bit scrambled but I am new to this.
My attempt to correct for complete days only is using statements lik
this
=IF((NETWORKDAYS(B12,B13)=1),0,+IF((NETWORKDAYS(B12,B13)=2),1,+IF(NETWORKDAYS(B12,B13)=0,0,NETWORKDAYS(B12,B13)-2))
+IF((NETWORKDAYS(B14,B15)=1),0,+IF((NETWORKDAYS(B14,B15)=2),1,+IF(NETWORKDAYS(B14,B15)=0,0,NETWORKDAYS(B14,B15)-2))
Any help would be appreciate
I want to be able to count hours/days in a working week (fine
NETWORKDAYS function and WORKDAYS to add back in ....but) and then ad
the working days back in. I am trying to use workday to add the day
back in but cannot count the days correctly, as I am having to work th
hours out separately.This is to calculate on-hold for SLA time so tha
the deadline is suspended when it is pending the customer
Surprisingly it is the days that are giving me the problem. I am usin
nested IF macros to work out the hours and then add the hours back in t
correct for times that a job is on-hold. I am running separat
calculations to work out hours and mins/days as they are presentin
different problems.
My problem is that I need to be able to count both hours and minute
between 8:00 and 18:00 Monday to Friday, and then add it back in to th
original deadline to defer it. I had thought that th
NETWORKDAYS/WORKDAY combination would do it but they both calculat
days incorrectly for my purposes. I am counting a full day as onl
days that are complete from 8:00am to 18:00 Monday to Friaday and Exce
treats a working day as any hours between one working day and the next.
Correcting by taking away days in the formula only works for deferal
that don't begin or end during a weekend. What I really need is
NETWORKHOURS function that will do the same for hours/mins a
NETWORKDAYS does for days and then I could really simplify the Macro!
Sorry if this is all a bit scrambled but I am new to this.
My attempt to correct for complete days only is using statements lik
this
=IF((NETWORKDAYS(B12,B13)=1),0,+IF((NETWORKDAYS(B12,B13)=2),1,+IF(NETWORKDAYS(B12,B13)=0,0,NETWORKDAYS(B12,B13)-2))
+IF((NETWORKDAYS(B14,B15)=1),0,+IF((NETWORKDAYS(B14,B15)=2),1,+IF(NETWORKDAYS(B14,B15)=0,0,NETWORKDAYS(B14,B15)-2))
Any help would be appreciate