Hi friends,
I have created a formula in excel where it calculates business hour and following are the code for the same
=(NETWORKDAYS(D9,E9)-1)*("17:00"-"08:00")+IF(NETWORKDAYS(D9,E9),MEDIAN(MOD(E9,1),"17:00","08:00"),"17:00")-MEDIAN(NETWORKDAYS(D9,E9)*MOD(D9,1),"17:00","08:00")
Where Start time D9 and End Time E9.
But this formula doesn't work properly when the days are same.
Can anyone fix this issue for me.
Bookmarks