Hi,
I'm currently on a placement where at the moment I'm trying to figure out a calculation too complex for my understanding.
We need to find a way to calculate the duration in minutes between two dates while considering different operating hours (Standard, 24/7, and 3rd party). Standard hours are 7am - 9pm M-F, 8am - 5pm Sat, and closed on Sunday.
We currently use Excel 2016.
Appreciate any help.
Thanks.
I'm currently on a placement where at the moment I'm trying to figure out a calculation too complex for my understanding.
We need to find a way to calculate the duration in minutes between two dates while considering different operating hours (Standard, 24/7, and 3rd party). Standard hours are 7am - 9pm M-F, 8am - 5pm Sat, and closed on Sunday.
We currently use Excel 2016.
Appreciate any help.
Thanks.
Operating Hours Formula.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | Category | Start | End | Operating Hours | Duration | |||||||||
2 | AAA | 07/07/2021 05:55 | 09/07/2021 16:40 | Standard Operating Hours | Standard Operating Hours | |||||||||
3 | BBB | 06/07/2021 04:32 | 06/07/2021 15:09 | 24*7 Operating Hours | Open | Close | ||||||||
4 | CCC | 09/07/2021 14:37 | 12/07/2021 09:55 | Standard Operating Hours | Mon - Fri | 07:00 | 21:00 | |||||||
5 | DDD | 06/07/2021 11:47 | 07/07/2021 12:51 | 3rd Party Defined Operating Hours | Sat | 08:00 | 17:00 | |||||||
6 | EEE | 08/07/2021 15:31 | 12/07/2021 06:42 | 24*7 Operating Hours | Sun | Closed | ||||||||
7 | FFF | 11/07/2021 09:16 | 13/07/2021 15:23 | Standard Operating Hours | ||||||||||
8 | ||||||||||||||
9 | ||||||||||||||
10 | ||||||||||||||
11 | ||||||||||||||
12 | ||||||||||||||
13 | Needed in formula: | |||||||||||||
14 | Calculate Duration between Start and End times | |||||||||||||
15 | Hours within Standard Operating Hours is needed, anything out of these hours shall be deducted from overall duration. | |||||||||||||
16 | ||||||||||||||
17 | However, for 24/7 operating hours, duration is simply total difference between start and end. | |||||||||||||
18 | 3rd Party Defined operating hours will need to remain as a manual input, so cell should be left blank. | |||||||||||||
19 | ||||||||||||||
Sheet1 |