Hi,
I am trying to come up with a formula or custom formula that can perform the following:
Calculate the difference between a Start Date (Date/Time) and an End Date (Date/Time) but exclude the hours when our business is NOT open. Our opening hours are 08:00 to 18:00 Monday to Friday and 08:00 to 12:00 on Saturday.
I can do this calculation for Monday to Friday but the Saturday element is tripping me up! I have used the following formula - if anyone can think of a tweak to this to cover the brief that would be ideal as I'd like to share this solution with another business lead and he is reticent to dip into VBA
=(NETWORKDAYS(StartDT,EndDT,HolidayList)-1)*(DayEnd-DayStart)+MOD(EndDT,1)-MOD(StartDT,1)
Bookmarks