is it possible

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
383
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Exel.xlsx
ABCDEFGHIJK
1JanuaryHours WorkedTotal HoursTotal Pay
2Sunday30/01/202200:0000:0000:000:00 
3Monday31/01/202210:0020:0010:009:15£92.50
4Tuesday01/02/202210:0020:0010:009:15£92.50
5Wednesday02/02/202210:0020:1510:159:30£95.00
6Thursday03/02/202210:0014:0004:004:00£80.00
7Friday04/02/202210:0020:0010:009:15£92.50
8Saturday05/02/202210:0016:0006:006:00£120.00
9
10
11RATES
12£10.00Standard RateMin 8 hrs paid as in G6 once 48 is reached Overtime kicks in to all paymnts
13£15.00O/Time Rate
14£12.00Saturday Rate
15£18.00Saturday O/Time Rate
16£15.00Sunday Rate
17£22.00Sunday O/Time Rate
18
Jan-22
Cell Formulas
RangeFormula
E2:E8E2=D2-C2
F2:F8F2=IF(E2>TIME(8,0,),E2-TIME(0,45,0),E2)
G2G2=IF(F2=0,"",MAX(Data!$B$44,F2*24)*$A$14)
G3:G7G3=IF(F3=0,"",MAX(Data!$B$44,F3*24)*$A$12)
G8G8=IF(F8=0,"",MAX(Data!$B$44,F8*24)*$A$16)
B3:B8B3=B2+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
C2:D10Cell Value>0textNO



Trying to work out how to build in hours work over 48 at overtime rate. The sheet can work out minimum hours works of 8hr also breaks of 45 mins need to be factored in once 8:45 is reached
i hope i have pasted the mini sheet correctly as it's my first attempt at this thank you
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Once you're at 48 hours, do you take the most expensive rate ?
suppose
- normal saterday hours : saturday rate (12) < overtime rate (15)
- overtime hours on saturday : overtime rate (15) < saturday overtime rate (18)
 
Upvote 0
The reason its so hard is you may start the week on a Sunday or any other day of the week. therefore your overtime not only kicks in at the higher rate on either Saturday, Sunday, or weekday
but suppose you worked sun, mon, had tues, wed off then worked thurs,fri, sat now on the sat you went into overtime say by 4 hours that extra hours would be paid at the higher rate.
But what if you was asked to work the tues your day off this would all be at the overtime time so the formula needs to look at the whole week and apply the correct fees for the correct day
hope this helps think it's quite a puzzle
 
Upvote 0
Now you look at the whole week, 60,5 hours worked, 50 hours within the 8 normal hours, 48 hours normally allowed, so proprotional substracted in column G, so that the weektotal "normal" hours is max 48 hours.
After 8:45 hours, a 45 minute break (not payed)
the rest of the hours in overtime
Columns K:O are not necessary, but to better understand.
Cell Formulas
RangeFormula
A2:A8A2=+B2
E2:E8E2=D2-C2
F2:F8F2=MIN(TIME(8,0,0),E2)
G2:G8G2=F2*IF($F$9>2,2/$F$9,1)
H2:H8H2=MIN(MAX(0,E2-TIME(8,45,0)),TIME(0,45,0))
E9:L9E9=SUM(E2:E8)
J2:J8J2=24*($G2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1)+$I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
K2:K8K2=24*($G2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1))
L2:L8L2=24*($I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
N2:N8N2=+K2/G2/24
O2:O8O2=+L2/I2/24
P2P2=WEEKDAY(B2,2)
B3:B8B3=B2+1
I2:I8I2=+E2-G2-H2
I10I10=+I9+H9+G9
 
Last edited:
Upvote 0
Definitely on the right track but.... the overtime won't start until after the 48 hours is reached so Friday will have some overtime in it and all of Saturday will be overtime you cannot spread the overtime out through the week.
the shift could be anywhere from 4hrs to 15hrs long. so in theory overtime could be reached after 3.5 days of work in extreme circumstances.

so if Sunday was the start of the week and I did 6:00 till 21:00 15hrs in total it would not be eligible for overtime rates just the flat daily rate.
 
Upvote 0
your extreme condition, start on sunday with workdays with 15 hours/day.
Result :
* sunday & monday & tuesday = 8 normal hours + 0:45 break + 6:15 overtime
* wednesday = 3 normal hours or 5:15 normal hours (due to 3*0:45 break) + 0:45 break + saldo overtime
* the rest of the week overtime ???
 
Upvote 0
no starts Sunday with 15 hour/day
Result: sunday & monday & tuesday = 14:15 normal hours + 0:45 break total 42:15 hours
wednesday = 5:75 normal hours then overtime after that
rest of week overtime?? - breaks of course hope this helps
 
Upvote 0
Exel.xlsx
ABCDEFGHIJKL
1JanuaryHours WorkedTotal HoursTotal Pay
2Sunday30/01/202206:0021:0015:0014:15£171.00£15:00 per hour
3Monday31/01/202206:0021:0015:0014:15£142.50£10:00 per hour
4Tuesday01/02/202206:0021:0015:0014:15£142.50£10:00 per hour
5Wednesday02/02/202206:0021:0015:0014:15£142.50£10:00 per hour then £15:00 for Overtime
6Thursday03/02/202210:0014:0004:004:00£80.00£15:00 per hour Overtime rate
7Friday04/02/202210:0020:0010:009:15£92.50£15:00 per hour Overtime rate
8Saturday05/02/202200:0000:0000:000:00 £18:00 per hour overtime rate
9
10
11RATES
12£10.00Standard RateMin 8 hrs paid as in G6 once 48 is reached after breaks are taken off Overtime kicks in to all payments after the 48 is reached
13£15.00O/Time Rate
14£12.00Saturday Rate
15£18.00Saturday O/Time Rate
16£15.00Sunday Rate
17£22.00Sunday O/Time Rate
Jan-22
Cell Formulas
RangeFormula
E2:E8E2=D2-C2
F2:F8F2=IF(E2>TIME(8,0,),E2-TIME(0,45,0),E2)
G2G2=IF(F2=0,"",MAX(Data!$B$44,F2*24)*$A$14)
G3:G7G3=IF(F3=0,"",MAX(Data!$B$44,F3*24)*$A$12)
G8G8=IF(F8=0,"",MAX(Data!$B$44,F8*24)*$A$16)
B3:B8B3=B2+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
D2:D3Cell Value>0textNO
C2:D10Cell Value>0textNO


Hoe this makes it clearer for you.
 
Upvote 0
little bit different 8 normal hours/day until 48
That was my point of vue before your last update, i give a new one this afternoon/this evening with that vision.
Cell Formulas
RangeFormula
A2:A8A2=+B2
E2:E8E2=D2-C2
F2:F8F2=MIN(MAX(0,E2-TIME(8,45,0)),TIME(0,45,0))
G2:G8,I2:I8G2=+E2-F2
H2:H8H2=MAX(0,MIN(E2-F2,TIME(8,0,0),2-SUM($H$1:$H1)))
E9:L9E9=SUM(E2:E8)
J2:J8J2=24*($H2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1)+$I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
K2:K8K2=24*($H2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1)+0*$I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
L2:L8L2=24*(0*$H2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1)+$I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
N2:O8N2=IFERROR(+K2/H2/24,"-")
B3:B8B3=B2+1
I10I10=+I9+H9+F9
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I10,E9Expression=$E$9<>$I$10textNO
 
Upvote 0
that wasn't such a big deal
Cell Formulas
RangeFormula
A2:A8A2=+B2
E2:E8E2=D2-C2
F2:F8F2=MIN(MAX(0,E2-TIME(8,45,0)),TIME(0,45,0))
G2:G8,I2:I8G2=+E2-F2
H2:H8H2=MAX(0,MIN(G2,2-SUM($H$1:$H1)))
E9:L9E9=SUM(E2:E8)
J2:J8J2=24*($H2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1)+$I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
K2:K8K2=24*($H2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1)+0*$I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
L2:L8L2=24*(0*$H2*VLOOKUP(WEEKDAY($B2,2),Tabel1,3,1)+$I2*VLOOKUP(WEEKDAY($B2,2),Tabel1,4,1))
N2:O8N2=IFERROR(+K2/H2/24,"-")
B3:B8B3=B2+1
I10I10=+I9+H9+F9
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I10,E9Expression=$E$9<>$I$10textNO
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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