I'm wanting to calculate the Elapsed between the start and end date/time. I can achieve this in column C. But as soon as I attempt to excludes weekends in column D the results isnt correct. What am I doing wrong??
Help very much appreciated. Thank
Help very much appreciated. Thank
example.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Start | End | Difference | Difference excluding weekends | ||
2 | 21/12/2023 06:52 | 21/12/2023 13:30 | 0 Days 6 Hour 38 Minutes | 1 Days 6 Hour 38 Minutes | ||
3 | 01/12/2023 10:27 | 20/12/2023 15:41 | 19 Days 5 Hour 14 Minutes | -14 Days 5 Hour 14 Minutes | ||
4 | 19/12/2023 07:21 | 22/12/2023 10:22 | 3 Days 3 Hour 1 Minutes | -4 Days 3 Hour 1 Minutes | ||
5 | 13/12/2023 11:08 | 28/12/2023 06:19 | 14 Days 19 Hour 11 Minutes | -12 Days 19 Hour 11 Minutes | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C5 | C2 | =INT(B2-A2)&" Days "&HOUR(MOD(B2-A2,1))&" Hour "&MINUTE(MOD(B2-A2,1))&" Minutes" |
D2:D5 | D2 | =NETWORKDAYS(B2, A2,2)&" Days "&HOUR(MOD(B2-A2,1))&" Hour "&MINUTE(MOD(B2-A2,1))&" Minutes" |