Hello everyone,
I'm trying to get the time gaps for each user. The problem is that the sum is thrown off once the time stamp goes to the following user. Is there a better formula that ensures that it does not sum the time gap if it is a different user? The data is formatted this way because our software formats the exported file in this format. I highlighted the cells that are affected by the issue.
I'm trying to get the time gaps for each user. The problem is that the sum is thrown off once the time stamp goes to the following user. Is there a better formula that ensures that it does not sum the time gap if it is a different user? The data is formatted this way because our software formats the exported file in this format. I highlighted the cells that are affected by the issue.
time gaps.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | User | Time stamps | Time Gaps | User | Time Gap Sum | |||||
2 | 1 | 23:23 | 1 | 0:38 | ||||||
3 | 1 | 23:45 | 0:22 | 2 | 0:55 | |||||
4 | 1 | 0:01 | 0:16 | 3 | 23:14 | |||||
5 | 2 | 23:36 | 23:35 | |||||||
6 | 2 | 23:45 | 0:09 | |||||||
7 | 2 | 0:56 | 1:11 | |||||||
8 | 3 | 23:00 | 22:04 | |||||||
9 | 3 | 23:35 | 0:35 | |||||||
10 | 3 | 0:10 | 0:35 | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H4 | H2 | =SUMIF(A:A,G2,C:C) |
C3:C10 | C3 | =IF(B3>B2,B3-B2,1-B2+B3) |