I have a worksheet where column A is the Project start date and time and column B is the project end date and time. I need to calculate total project time minus weekends and holidays. Our work hours are 7 a.m. until 5 p.m.
I have been trying to use the following Excel formula but it doesn't calculte correctly.
=(NETWORKDAYS(A2,B2,C1:C8)-1)*(D1-C1)+IF(NETWORKDAYS(B2,B2),MEDIAN(MOD(B2,1),D1,C1),D1)-MEDIAN(NETWORKDAYS(A2,A2)*MOD(A2,1),D1,C1)
Where A2 = Start date, B2 = End date, C1:C8 = Holiday range, C1 = Day Start time and D1 = Day end Time.
Any help would be greatly appreciated.
Tammy