Hi, Please help I am trying to calculate work hours between 2 dates including weekends (in Excel 2007)?
Details are:
H2 - Raised_Date (Includes date and time)
I2 - End_Date (Includes date and time)
N2 - Start Time (10:30:00 AM)
O2 - End Time (10:00:00 PM)
In the formula be I am getting correct data for weekdays, but I am not able to insert Saturday as part of working days.
Formula used:
=IF(OR($O$2<$N$2,I2<H2),0,(NETWORKDAYS(H2,I2,1)-(NETWORKDAYS(H2,H2,1)*IF(MOD(H2,1)>$O$2,1,(MAX($N$2,MOD(H2,1))-$N$2)/($O$2-$N$2)))-(NETWORKDAYS(I2,I2,1)*IF(MOD(I2,1)<$N$2,1,($O$2-MIN($O$2,MOD(I2,1)))/($O$2-$N$2))))*($O$2-$N$2)*24)
Details are:
H2 - Raised_Date (Includes date and time)
I2 - End_Date (Includes date and time)
N2 - Start Time (10:30:00 AM)
O2 - End Time (10:00:00 PM)
In the formula be I am getting correct data for weekdays, but I am not able to insert Saturday as part of working days.
Formula used:
=IF(OR($O$2<$N$2,I2<H2),0,(NETWORKDAYS(H2,I2,1)-(NETWORKDAYS(H2,H2,1)*IF(MOD(H2,1)>$O$2,1,(MAX($N$2,MOD(H2,1))-$N$2)/($O$2-$N$2)))-(NETWORKDAYS(I2,I2,1)*IF(MOD(I2,1)<$N$2,1,($O$2-MIN($O$2,MOD(I2,1)))/($O$2-$N$2))))*($O$2-$N$2)*24)