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
 
that's a start !
What i understood until now, see link
Cell Formulas
RangeFormula
L2:L8,L10L2=24*$H2*VLOOKUP(IF(D2<>"",D2,WEEKDAY($A2,2)),Tabel1,3,1)
M2:M8,M10M2=24*$I2*VLOOKUP(IF(D2<>"",D2,WEEKDAY($A2,2)),Tabel1,4,1)
N2:N8,N10N2=J2*1*24
O2O2=Information!B10
P2P2=Information!B9
O3:O8,O10O3=$O$2
P3:P8,P10P3=$P$2
Q2:R8,Q10:R10Q2=IFERROR(+L2/H2/24,"-")
S2:S9S2=IF(A2="",S1,"wk_"& TEXT(A2-WEEKDAY(A2)+1,$AR$1))
T2:T10T2=IF(A2="","T","D")
Q9:R9,L9:N9Q9=SUBTOTAL(109,Q2:Q8)
V9V9=INDEX(AL$2:AL$5,MATCH(K9,AK$2:AK$5,1))
W9W9=K9-U9-V9
X9X9=ROUND(0.005*W9,2)
Y9Y9=taxes(W9)
AA9AA9=+taxes(Z9)
S10S10=IF(A10="",S8,"wk_"& TEXT(A10-WEEKDAY(A10)+1,$AR$1))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
V9:X9Expression=EN($A9<>"";REST(RIJ($A9);2)=0)textNO
AC9Expression=EN($A9<>"";REST(RIJ($A9);2)=0)textNO
Z9Expression=EN($A9<>"";REST(RIJ($A9);2)=0)textNO
A2:S452,U9:AB9Expression=EN($A2<>"";MEDIAAN(DATUM(JAAR($A$2);4;1);DATUM(JAAR($A$2)+1;3;31);$A2)<>$A2)textNO
A2:S452,U9:AB9Expression=EN($A2<>"";REST(RIJ($A2);2)=0)textNO
L2:N452,E2:J452Expression=EN($A2<>"";E2=0;1)textNO
Cells with Data Validation
CellAllowCriteria
O2List=$AM$2:$AM$3
P2List=$AO$2:$AO$4
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Right we are nearly there, sorry about all the confusion. missing the Tax column which works on the cell information!c45 which is the individuals tax code based on information!b45*10/52
Spoke with an accountant who clarified how the deductions are made
10/04/22 to 14/04/22 is worked as follows
w25 = K25 - u25-v25
y25= taxes(w25)
w25-y25 gives new figure
x25 - new figure
Result is AA25
z25=taxes(AA25)
new tax column AB25 =taxes(based on information!c45

new column NET Payment to Employer
AC25=AA25-z25-ab25+u25
 
Upvote 0
sheet is almost there but we are missing a couple of things to make things clearer
Can we call y (Employers NI
Can we call z Employees NI
Can we Call ab Gross 2 this is where the tax and NI are taken from
Can we call ad Tax
Can we call aa Payment to Employee
Can we call ac NET Payment

So we have expenses u25 Correct
So we have Mang Fee v25 correct
So we have w25 =k25-u25-v25 Correct
So we have y25 =taxes(w25) Correct
So ab25=w25-y25 =Gross2
So we have aa25=ab25-x25 this is payment to employee
No we have the last two deductions
so we have z25=taxes(ab25)
So we have ad25= this is 13.25% of ab24 but the first amount from information!c5 is deducted first
Now ac25 NET to Employee is ab25-a25-ad25+u25

hope this is clear to you i am very thank full for the time you are spending on this project.
 
Upvote 0
Right made a couple of minor changes it now works so you have done a fantastic job..
lastly is it possible to move columns around to put them in a better order?
if so can we change to the following as it makes more sense now you have got the formula working correctly.
Expenses - MangFee - Gross NI - Employers NI - App Levy - Gross Tax+NI - Tax - Employees NI - Payment To Employee - Net - YTD

 
Upvote 0
You have done a fantastic job and I can only apologize for my instructions in order to get this far.
I have just updated the file as I thought it might need a way to make up for errors in payment so added a manual adjustment column
But while i was looking i noticed that i information!c40 that a price change on the NI occurs in July can we add to the vba taxes maybe a taxes1 which i can adjust for once we reach the specified date.
if i change the rate to the new figure in taxes it will act on the previous weeks and throw them out.
Once again great work!!

Wages.xlsb updated file
 
Upvote 0
I'm loving the spread sheet was you able to adjust the macro to take into account the change of NI rates from July
 
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