Calculate and Identify Ordinary Hours, Double time or 1.5 Time

ChetanPuri

Board Regular
Joined
Sep 5, 2018
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon Excel Team,

Just need help in creating a formula based on Start time and End time, as per the attached screenshot, any shift that finishes after 8 pm or before is 12 am classed as Afternoon Shift or after 12 am is classed as Night shift. Is there a formula that can allocate number of Hours based on the criteria as per the attached Screenshot. Many thanks, Regards, Chetan
Roster Data-26062024-28062025.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1ClassificationStepWeekly pay rateHourly pay rateSaturdaySundayPublic holidayAfternoon shiftNight shiftEmployee CodeDatePublishedRoleShift TypeStart TimeBreak_Start_TimeBreak LengthEnd TimeShift Net Length Ordinary AfternoonSaturdaySunday
2Level 11$930.70$24.49$36.74$48.98$61.23$27.55$28.16Friday28-Jun-24FALSEDSWLevel 1Step 1Normal16:00:0000:00:00020:00:004.00
3Level 12$960.70$25.28$37.92$50.56$63.20$28.44$29.07Saturday29-Jun-24FALSEDSWLevel 2Step 2Normal16:00:0000:00:00020:00:004.00
4Level 13$995.00$26.18$39.27$52.36$65.45$29.45$30.11Sunday30-Jun-24FALSEDSWLevel 3Step 3Normal16:00:0000:00:00020:00:004.00
5Level 21$1,223.85$32.21$48.32$64.42$80.53$36.24$37.04Monday1-Jul-24FALSEDSWLevel 4Step 4Normal16:00:0000:00:00020:00:004.00
6Level 22$1,262.23$33.22$49.83$66.44$83.05$37.37$38.20Tuesday2-Jul-24FALSEDSWLevel 5Step 5Normal16:00:0000:00:00020:00:004.00
7Level 23$1,300.60$34.23$51.35$68.46$85.58$38.51$39.36Wednesday3-Jul-24FALSEDSWLevel 6Step 6Normal16:00:0000:00:00020:00:004.00
8Level 24$1,335.29$35.14$52.71$70.28$87.85$39.53$40.41Thursday4-Jul-24FALSEDSWNormal16:00:0000:00:00020:00:004.00
9Level 31$1,367.86$36.00$54.00$72.00$90.00$40.50$41.40Friday5-Jul-24FALSEDSWNormal16:00:0000:00:00020:00:004.00
10Level 32$1,407.17$37.03$55.55$74.06$92.58$41.66$42.58Saturday6-Jul-24FALSEDSWNormal16:00:0000:00:00020:00:004.00
11Level 33$1,437.28$37.82$56.73$75.64$94.55$42.55$43.49Sunday7-Jul-24FALSEDSWNormal16:00:0000:00:00020:00:004.00
12Level 34$1,466.77$38.60$57.90$77.20$96.50$43.43$44.39Monday8-Jul-24FALSEDSWNormal16:00:0000:00:00020:00:004.00
13Level 41$1,577.80$41.52$62.28$83.04$103.80$46.71$47.75Tuesday9-Jul-24FALSEDSWNormal16:00:0000:00:00020:00:004.00
Sheet2
Cell Formulas
RangeFormula
K2:K13K2=TEXT(L2,"DDDD")
 

Attachments

  • Screenshot 2024-04-08 153427.png
    Screenshot 2024-04-08 153427.png
    27.9 KB · Views: 10

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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