Hello All,
I would appreciate your help to calculate working hours per calendar date/week/month in 24/7/365 operation. Example: Week starts on Monday at 00.00 and ends on Sunday at 23.59.59. I am struggling to find the solution for past midnight shifts (MOD function does not help).
My data:
I would appreciate your help to calculate working hours per calendar date/week/month in 24/7/365 operation. Example: Week starts on Monday at 00.00 and ends on Sunday at 23.59.59. I am struggling to find the solution for past midnight shifts (MOD function does not help).
My data:
HoursPerDate.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | EMPLOYEE | START TIME | END TIME | ||
2 | ACK | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
3 | ACK | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
4 | ACK | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
5 | ACK | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
6 | ACK | 16/02/2022 06:30 | 16/02/2022 16:30 | ||
7 | ATA | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
8 | ATA | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
9 | ATA | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
10 | ATA | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
11 | ATA | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
12 | AUB | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
13 | AUB | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
14 | AUB | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
15 | AUB | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
16 | AUB | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
17 | BOZ | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
18 | BOZ | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
19 | BOZ | 15/02/2022 07:00 | 15/02/2022 14:00 | ||
20 | BOZ | 16/02/2022 07:00 | 16/02/2022 15:00 | ||
21 | BOZ | 19/02/2022 06:30 | 19/02/2022 18:00 | ||
22 | BRA | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
23 | BRA | 04/02/2022 07:30 | 04/02/2022 15:30 | ||
24 | BRA | 14/02/2022 09:00 | 14/02/2022 21:00 | ||
25 | BRA | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
26 | BRA | 16/02/2022 14:30 | 16/02/2022 23:30 | ||
27 | BRK | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
28 | BRK | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
29 | BRK | 14/02/2022 14:30 | 14/02/2022 23:30 | ||
30 | BRK | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
31 | BRK | 16/02/2022 14:30 | 16/02/2022 23:30 | ||
32 | BRK | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
33 | BRK | 19/02/2022 18:30 | 20/02/2022 02:30 | ||
34 | BUČ | 13/02/2022 14:30 | 13/02/2022 22:30 | ||
35 | BUČ | 14/02/2022 14:30 | 14/02/2022 23:30 | ||
36 | BUČ | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
37 | BUL | 02/02/2022 14:00 | 02/02/2022 22:00 | ||
38 | BUL | 04/02/2022 14:00 | 04/02/2022 22:00 | ||
39 | BUL | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
40 | BUL | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
41 | BUL | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
42 | DIZ | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
43 | DIZ | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
44 | DIZ | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
45 | DIZ | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
46 | DIZ | 16/02/2022 06:30 | 16/02/2022 16:30 | ||
47 | EDI | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
48 | EDI | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
49 | EDI | 13/02/2022 02:30 | 13/02/2022 11:00 | ||
50 | EDI | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
51 | EDI | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
52 | EDI | 16/02/2022 06:30 | 16/02/2022 16:30 | ||
53 | FAT | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
54 | FAT | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
55 | FAT | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
56 | FAT | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
57 | FAT | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
58 | GEO | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
59 | GEO | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
60 | GEO | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
61 | GEO | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
62 | GEO | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
63 | GLA | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
64 | GLA | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
65 | GLA | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
66 | GLA | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
67 | GOL | 14/02/2022 09:00 | 14/02/2022 21:00 | ||
68 | GOL | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
69 | GOL | 16/02/2022 14:30 | 16/02/2022 23:30 | ||
70 | GOL | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
71 | GOL | 19/02/2022 18:30 | 19/02/2022 23:30 | ||
72 | HRE | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
73 | HRE | 19/02/2022 18:30 | 20/02/2022 02:30 | ||
74 | IKI | 02/02/2022 14:00 | 02/02/2022 22:00 | ||
75 | IKI | 04/02/2022 14:00 | 04/02/2022 22:00 | ||
76 | IVA | 02/02/2022 22:00 | 03/02/2022 10:00 | ||
77 | IVA | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
78 | IVA | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
79 | IVA | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
80 | IVA | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
81 | IVA | 15/02/2022 14:00 | 15/02/2022 22:00 | ||
82 | IVA | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
83 | IVA | 16/02/2022 14:00 | 16/02/2022 22:00 | ||
84 | IVA | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
85 | IVK | 14/02/2022 06:30 | 14/02/2022 17:30 | ||
86 | IVK | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
87 | IVK | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
88 | JAD | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
89 | JAD | 14/02/2022 07:00 | 14/02/2022 15:00 | ||
90 | JOS | 14/02/2022 07:30 | 14/02/2022 15:30 | ||
91 | JOS | 15/02/2022 07:30 | 15/02/2022 15:30 | ||
92 | JOS | 16/02/2022 07:30 | 16/02/2022 15:30 | ||
93 | JOV | 14/02/2022 07:30 | 14/02/2022 15:30 | ||
94 | JOV | 15/02/2022 07:30 | 15/02/2022 15:30 | ||
95 | JOV | 16/02/2022 07:30 | 16/02/2022 15:30 | ||
96 | KAS | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
97 | KAS | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
98 | KAS | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
99 | KAS | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
100 | KNE | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
101 | KNE | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
102 | KNE | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
103 | KNE | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
104 | KOL | 02/02/2022 14:00 | 02/02/2022 22:00 | ||
105 | KOL | 04/02/2022 14:00 | 04/02/2022 22:00 | ||
106 | KOL | 14/02/2022 06:00 | 14/02/2022 14:00 | ||
107 | KOL | 15/02/2022 06:00 | 15/02/2022 14:00 | ||
108 | KOL | 16/02/2022 06:00 | 16/02/2022 14:00 | ||
109 | KOL | 19/02/2022 06:00 | 19/02/2022 14:00 | ||
110 | KRS | 04/02/2022 07:30 | 04/02/2022 15:30 | ||
111 | KRS | 13/02/2022 14:30 | 13/02/2022 22:30 | ||
112 | KRS | 14/02/2022 07:30 | 14/02/2022 15:30 | ||
113 | KRS | 15/02/2022 07:30 | 15/02/2022 15:30 | ||
114 | KRS | 16/02/2022 07:30 | 16/02/2022 15:30 | ||
115 | KRU | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
116 | KRU | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
117 | KRU | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
118 | KRU | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
119 | KUZ | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
120 | KUZ | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
121 | LIT | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
122 | LIT | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
123 | LIT | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
124 | LIT | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
125 | LUK | 19/02/2022 18:30 | 20/02/2022 02:30 | ||
126 | MAH | 13/02/2022 14:30 | 13/02/2022 22:30 | ||
127 | MAH | 14/02/2022 14:30 | 14/02/2022 23:30 | ||
128 | MAH | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
129 | MAH | 16/02/2022 14:30 | 16/02/2022 23:30 | ||
130 | MAR | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
131 | MAR | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
132 | MAR | 14/02/2022 06:00 | 14/02/2022 14:00 | ||
133 | MAR | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
134 | MAR | 15/02/2022 06:00 | 15/02/2022 14:00 | ||
135 | MAR | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
136 | MAR | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
137 | MAR | 19/02/2022 06:30 | 19/02/2022 18:00 | ||
138 | MAR | 21/02/2022 06:00 | 21/02/2022 14:00 | ||
139 | PAN | 14/02/2022 09:00 | 14/02/2022 21:00 | ||
140 | PAN | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
141 | PAN | 16/02/2022 14:30 | 16/02/2022 23:30 | ||
142 | PAN | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
143 | PAN | 19/02/2022 18:30 | 19/02/2022 23:30 | ||
144 | PAV | 14/02/2022 14:30 | 14/02/2022 23:30 | ||
145 | PAV | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
146 | PAV | 16/02/2022 14:30 | 16/02/2022 23:30 | ||
147 | PAV | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
148 | PAV | 19/02/2022 18:30 | 20/02/2022 02:30 | ||
149 | POL | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
150 | POL | 19/02/2022 06:30 | 19/02/2022 18:00 | ||
151 | PRO | 13/02/2022 14:30 | 13/02/2022 22:30 | ||
152 | RAD | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
153 | RAD | 13/02/2022 14:30 | 13/02/2022 22:30 | ||
154 | RAD | 14/02/2022 09:00 | 14/02/2022 21:00 | ||
155 | RAD | 14/02/2022 14:30 | 14/02/2022 23:30 | ||
156 | RAD | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
157 | RAD | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
158 | RAD | 16/02/2022 14:30 | 16/02/2022 23:30 | ||
159 | RAD | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
160 | RAD | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
161 | RAD | 19/02/2022 18:30 | 19/02/2022 23:30 | ||
162 | RAD | 19/02/2022 18:30 | 20/02/2022 02:30 | ||
163 | SHU | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
164 | SHU | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
165 | SHU | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
166 | SHU | 16/02/2022 06:30 | 16/02/2022 16:30 | ||
167 | SKA | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
168 | SKA | 13/02/2022 02:30 | 13/02/2022 11:00 | ||
169 | SKA | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
170 | SKA | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
171 | SKA | 16/02/2022 06:30 | 16/02/2022 16:30 | ||
172 | SPA | 13/02/2022 14:30 | 13/02/2022 22:30 | ||
173 | SPA | 14/02/2022 14:30 | 14/02/2022 23:30 | ||
174 | SPA | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
175 | SPA | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
176 | STE | 14/02/2022 09:00 | 14/02/2022 21:00 | ||
177 | STE | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
178 | STE | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
179 | STE | 19/02/2022 18:30 | 19/02/2022 23:30 | ||
180 | STO | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
181 | STO | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
182 | STO | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
183 | STO | 16/02/2022 06:30 | 16/02/2022 16:30 | ||
184 | STO | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
185 | STO | 19/02/2022 18:30 | 19/02/2022 23:30 | ||
186 | STR | 04/02/2022 07:00 | 04/02/2022 15:00 | ||
187 | STR | 14/02/2022 06:00 | 14/02/2022 14:00 | ||
188 | STR | 15/02/2022 06:00 | 15/02/2022 14:00 | ||
189 | STR | 16/02/2022 06:00 | 16/02/2022 14:00 | ||
190 | STR | 19/02/2022 06:30 | 19/02/2022 18:00 | ||
191 | TAJ | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
192 | TAJ | 14/02/2022 06:30 | 14/02/2022 15:30 | ||
193 | TAJ | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
194 | TAJ | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
195 | TOM | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
196 | TOM | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
197 | TOM | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
198 | TOM | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
199 | TSV | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
200 | TSV | 13/02/2022 02:00 | 13/02/2022 11:00 | ||
201 | TSV | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
202 | TSV | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
203 | TSV | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
204 | VAL | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
205 | VAL | 13/02/2022 02:00 | 13/02/2022 11:00 | ||
206 | VAL | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
207 | VAL | 15/02/2022 14:00 | 15/02/2022 22:00 | ||
208 | VAL | 16/02/2022 14:00 | 16/02/2022 22:00 | ||
209 | VAL | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
210 | VIN | 14/02/2022 14:00 | 14/02/2022 22:00 | ||
211 | VIN | 19/02/2022 06:30 | 19/02/2022 18:00 | ||
212 | VIN | 21/02/2022 06:00 | 21/02/2022 14:00 | ||
213 | VLA | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
214 | VLA | 13/02/2022 02:00 | 13/02/2022 11:00 | ||
215 | VLA | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
216 | VLA | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
217 | VLA | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
218 | VLA | 19/02/2022 18:30 | 20/02/2022 02:30 | ||
219 | VUK | 04/02/2022 07:30 | 04/02/2022 15:30 | ||
220 | VUK | 14/02/2022 07:00 | 14/02/2022 15:00 | ||
221 | VUK | 15/02/2022 07:00 | 15/02/2022 14:00 | ||
222 | VUK | 16/02/2022 06:00 | 16/02/2022 14:00 | ||
223 | VUK | 19/02/2022 06:30 | 19/02/2022 18:00 | ||
224 | ZER | 13/02/2022 02:00 | 13/02/2022 11:00 | ||
225 | ZER | 14/02/2022 06:30 | 14/02/2022 18:30 | ||
226 | ZER | 15/02/2022 06:30 | 15/02/2022 18:30 | ||
227 | ZER | 16/02/2022 06:30 | 16/02/2022 18:30 | ||
228 | ZUL | 04/02/2022 06:30 | 04/02/2022 16:30 | ||
229 | ZUL | 14/02/2022 09:00 | 14/02/2022 21:00 | ||
230 | ZUL | 15/02/2022 14:30 | 15/02/2022 23:30 | ||
231 | ZUL | 18/02/2022 18:30 | 19/02/2022 06:30 | ||
232 | ZUL | 19/02/2022 18:30 | 19/02/2022 23:30 | ||
233 | ZUN | 04/02/2022 22:00 | 05/02/2022 06:00 | ||
234 | ZUN | 14/02/2022 14:00 | 14/02/2022 22:00 | ||
H P D |