Time Sheet with Shift Differentials

trush12

New Member
Joined
Dec 27, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello... I am new to this forum and am in desperate need of a spreadsheet to breakdown and calculate hours worked with the following shift differentials when Time in and Time Out is entered:

Shift 1 (Day) = Monday-Friday 7AM-2:59PM
Shift 2 (Eve) = Monday-Friday 3PM-10:59PM
Shift 3 (Night) = Monday-Friday 11PM-6:59AM
Shift 4 (WK Day) = Saturday-Sunday 7AM-2:59PM
Shift 5 (WK Eve) = Saturday-Sunday 3PM-10:59PM
Shift 6 (WK Night) = Friday-Saturday 11PM-6:59AM
Shift 7 (ED SPEC) = Friday 7PM-Monday 7:30AM

Can you help me please?
 
I hadn't tried to handle it so that works for me.
I found a mistake in one calculation so here's a new version which also has the half hours removed.

Trush12.xlsx
ABCDEFGHIJKLMNOPQRSTUVWX
128-Nov29-Nov30-Nov1-Dec2-Dec3-Dec4-Dec5-Dec6-Dec7-Dec8-Dec9-Dec10-Dec11-Dec
2Nurse, BettySUNMONTUEWEDTHUFRISATSUNMONTUEWEDTHUFRISATTOTALS
3Time In & Time Out (Hrs)24HR OC1000-22001000-22001000-22001000-22001900-07001900-0700
4Start 29-Nov 10:00   3-Dec 10:004-Dec 10:00 5-Dec 10:00   9-Dec 19:0010-Dec 19:00 
5End 29-Nov 22:00   3-Dec 22:004-Dec 22:00 5-Dec 22:00   10-Dec 07:0011-Dec 07:00 
6Hours 12   1212 12   1212 72
7OT= Anything over 40 hours in one week      26       834
8Shift 1DayMONTUEWEDTHUFRI7:0015:000Shift 1= Day (Regular)- Monday-Friday 7AM-2:59PMNA 5   5      00 10
9Shift 2EveMONTUEWEDTHUFRI15:0023:000Shift 2= BRX ER Evening - Monday-Friday 3PM-10:59PM$1.00 7   7      44 22
10Shift 3NightMONTUEWEDTHUFRI23:007:001Shift 3= BRX ER Night - Monday-Friday 11PM-6:59AM$2.00 0   0      88 16
11Shift 4WK DaySATSUN7:0015:000Shift 4= Wnkd Day - Saturday-Sunday 7AM-2:59PM$1.35      5 5      10
12Shift 5WK EveSATSUN15:0023:000Shift 5= Wknd Eve - Saturday-Sunday 3PM-10:59PM$2.25      7 7      14
13Shift 6WK NightSATSUN23:007:001Shift 6= Wknd Night - Saturday-Sunday 11PM-6:59AM$2.55      0 0      0
14Shift 7ED SPECFRIMON19:007:301Shift 7= BRX (ED SPEC) - Friday 7PM-Monday 7:30AM$3.00 3   3       12 18
15On Call24              24
3rd
Cell Formulas
RangeFormula
Q2:W2,I2:O2I2=UPPER(TEXT(I$1,"ddd"))
I4:W4I4=IF(OR(I3="",I3="24HR OC"),"",I1+TIME(LEFT(I$3,2),MID(I$3,3,2),0))
I5:P5I5=IF(OR(I3="",I3="24HR OC"),"",IF(RIGHT(I$3,4)<LEFT(I$3,4),I1+1,I1)+TIME(MID(I$3,6,2),RIGHT(I$3,2),0))
Q5:W5Q5=IF(Q3="","",IF(RIGHT(Q$3,4)<LEFT(Q$3,4),Q1+1,Q1)+TIME(MID(Q$3,6,2),RIGHT(Q$3,2),0))
I6:W6I6=IF(I$5<>"",(I5-I4)*24,"")
X6:X15X6=SUM(I6:W6)
I7:W7I7=IF(I$2="SAT",MAX(0,SUM(C8:I15)-40),"")
I8:W15I8=IF(AND(I$3="24HR OC",$G8="On Call"),24,IF(AND(I$4<>"",ISNUMBER(SEARCH(I$2,$C8))),MAX(MIN(I$5,I$1+$E8+$F8)-MAX(I$4,I$1+$D8),0)*24,""))
F8:F14F8=IF(E8<D8,1,0)
 
Upvote 0
Solution

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
That is awesome!!!!!!! THANK YOU! I have a question about the OT row...it is showing 34 hours of OT and should be 0.
 
Upvote 0
If you add all the hours for the first week, 5, 5, 7, 7, 5, 7, 3, 3 and 24, they equal 66 which is 26 hours overtime.
If you add all the hours for the second week 4, 4, 8, 8, 5, 7 and 12 you get 48, which is 8 hours overtime.
26 + 8 = 34.
 
Upvote 0
I am not adding all those hours as hours worked.
if 72 hours are worked total as stated in Row 6, then this a breakdown of how those hours are paid. Some of the differentials overlap.

For example: working a Saturday 1000-2200 (12 hours), you get a shift diff added for Day, Eve, and Wk Day, Wk Eve and ED SPEC but it still only a total of 12 hours.
 
Upvote 0
So the formula in I7 should be
Excel Formula:
=IF(I$2="SAT",MAX(0,SUM(C6:I6)-40),"")
which is then copy & pasted across all cells to W7.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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