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
 
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
off to work but will try it out tomorrow morning and let you know thank you for the effort much appreciated
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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
Can't thank you enough great work
 
Upvote 0
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


when i copy your spreadsheat it comes out with #name? tried different formatting to no avail where am i going wrong please
 
Upvote 0
Q1:T4 was a table (listobject) in my example, named "Tabel1".
So you have to do the same, make that range a table and because your language isn"t dutch, rename it "Tabel1".
Now, the formulas should be working.
Later, you can rename that table again to something better.

other approach, suppose your table exists already and is named "Table1"
select J2:L8 and with "Find and replace" (CTRL+H), you replace "tabel1" with "table1"
If you hate tables, you can also "Find and replace" that "Tabel1" with the addresses "$Q$1:$T$4"
 
Upvote 0
Marvelous you sir are a gentleman once again thank you enjoy your day I will now.
 
Upvote 0
Just spotted an issue, if i work say 6:00 10:00 i need the sheet to pay a min of 8 hrs for any shift not the 4 hrs actually worked currently everything works great apart from that.
Can this be added in please
 
Upvote 0
cells in A:D are free, the rest is blocked because the worksheet is protected (without password).
So, you can't change a formula by accident.
Overtime.xlsx <-- link to my file
The days with 0:00 < worktime < 8:00 have conditional formatted background color orange
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:I9Expression=$E2<>$F2+$H2+$I2textNO
I10,E9Expression=$E$9<>$I$10textNO
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
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