Shift Adherence - calculate scheduled shifts vs actual shift worked

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
907
Hi, I have 2 time formats in H:MM:SS AM/PM and I need to calculate in one cell the % adhered to the shift.

If someone was scheduled to work 8-5 but actually worked 8:10-5:10, they got their 8 hours in but didn’t work it within the shift.

The logic is

Adherence = minutes within Aherence / Total scheduled min.

So in this case it would be 530/540 =98%. So I need a formula that will look at the two time stamps and calculate this as a percent

Any help will be awesome!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Do these shifts ever have PM then AM? In other words, could someone start a shift at 8PM and work until 5AM?

Also, if someone worked 8am-5pm he worked 9 hours, not 8.
 
Last edited:
Upvote 0
Thanks I meant 9 with an hour lunch that I take out. everyone will work AM to PM shift
 
Upvote 0
Right. Ok, we'll try this.


Book1
ABCDE
1ScheduledLabouredOutside Minutes
28:00 AM8:10 AM10
35:00 PM5:10 PM0
4Minutes540540
5Adherence Rate:98.15%
Sheet43
Cell Formulas
RangeFormula
D2=IF(C2C2-B2)*24*60)
D3=IF(C3>B3,0,(C3-B3)*24*60)
B4=(B3-B2)*24*60
C4=(C3-C2)*24*60
E5=(C4-SUM(D2:D3))/B4
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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