Sum time gaps

bored622

New Member
Joined
Mar 2, 2022
Messages
43
Office Version
  1. 2016
Platform
  1. Windows
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.

time gaps.xlsm
ABCDEFGH
1UserTime stampsTime GapsUserTime Gap Sum
2123:2310:38
3123:450:2220:55
410:010:16323:14
5223:3623:35
6223:450:09
720:561:11
8323:0022:04
9323:350:35
1030:100:35
Sheet1
Cell Formulas
RangeFormula
H2:H4H2=SUMIF(A:A,G2,C:C)
C3:C10C3=IF(B3>B2,B3-B2,1-B2+B3)
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Upvote 1
Solution
will this works for you?

Book1
ABCDEFGH
1UserTime stampsTime GapsUserTime Gap Sum
2123:23 100:38
3123:4500:22201:20
4100:0100:16301:10
5223:36 
6223:4500:09
7200:5601:11
8323:00 
9323:3500:35
10300:1000:35
Sheet2
Cell Formulas
RangeFormula
H2:H4H2=SUMIF(A:A,G2,C:C)
C2:C10C2=IF(A1<>A2,"",IF(B2>B1,B2-B1,1-B1+B2))
 
Upvote 1

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top