Shankar Narayanan T
New Member
Hi,
I want to calculate the time difference between the two dates excluding Sunday. Total works hours per day is 8 hours starting from 9:30 a.m. to 5:30 p.m and during saturday it is 9:30 a.m. to 1:30 p.m.
I have written this formula..but it is not working properly.
=NETWORKDAYS.INTL(A6,B6,11,F$11:F$20)*8-(IF(AND(WEEKDAY(A6)>1,HOUR(A6)+(MINUTE(A6)/100)>9.3,NETWORKDAYS.INTL(A6,A6,11,F$11:F$20)>0),IF(HOUR(A6)+(MINUTE(A6)/100)>=17.3,8,(TIME(HOUR(A6),MINUTE(A6),0)-TIME(9,30,)))*24))-(IF(AND(WEEKDAY(B6)>1,HOUR(B6)+(MINUTE(B6)/100)<17.3,NETWORKDAYS.INTL(B6,B6,11,F$11:F$20)>0),IF(AND(WEEKDAY(B6)=7,HOUR(B6)+(MINUTE(B6)/100)>13.3),4,IF(HOUR(B6)+(MINUTE(B6)/100)<=9.3,8,(TIME(17,30,)-TIME(HOUR(B6),MINUTE(B6),0))*24))))
Where A6,B6 are start and end date & time, F11:F20 are holidays
Could anyone help me out to correct this formula
Regards,
Shankar
I want to calculate the time difference between the two dates excluding Sunday. Total works hours per day is 8 hours starting from 9:30 a.m. to 5:30 p.m and during saturday it is 9:30 a.m. to 1:30 p.m.
I have written this formula..but it is not working properly.
=NETWORKDAYS.INTL(A6,B6,11,F$11:F$20)*8-(IF(AND(WEEKDAY(A6)>1,HOUR(A6)+(MINUTE(A6)/100)>9.3,NETWORKDAYS.INTL(A6,A6,11,F$11:F$20)>0),IF(HOUR(A6)+(MINUTE(A6)/100)>=17.3,8,(TIME(HOUR(A6),MINUTE(A6),0)-TIME(9,30,)))*24))-(IF(AND(WEEKDAY(B6)>1,HOUR(B6)+(MINUTE(B6)/100)<17.3,NETWORKDAYS.INTL(B6,B6,11,F$11:F$20)>0),IF(AND(WEEKDAY(B6)=7,HOUR(B6)+(MINUTE(B6)/100)>13.3),4,IF(HOUR(B6)+(MINUTE(B6)/100)<=9.3,8,(TIME(17,30,)-TIME(HOUR(B6),MINUTE(B6),0))*24))))
Where A6,B6 are start and end date & time, F11:F20 are holidays
Could anyone help me out to correct this formula
Regards,
Shankar