is it possible

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
384
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 did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Wages22.23.xlsb
ABCDEFGHIJKLMNOPQ
1Class 1 National InsurancePer WeekPer YearEmployer
2Lower earnings limit (LEL)£123£6,3960%nothing on the first £190
3Primary Threshold (PT) 6th April 22 to 5th July 22£190£9,88013.25%13.25% (£102.95) on your earnings between £190.01 and £967.01
4Primary Threshold (PT) 6th July 22 to 5th July 23£242£12,57013.25%3.25% (£1.07) on the remaining earnings above £967
5Secondary Threshold (ST)£175£9,10013.25%
6Upper Secondary Threshold (UST)£967£50,2703.25%This means your National Insurance payment will be £104.02 for the week.
7Tax Free Earnings£12,960.00
8
9
10Gross amount£1,000.00Result £104.02
Information (2)
Cell Formulas
RangeFormula
C2:C6C2=D2/52


try this formula first if the starting fique is 1000 then the result should be 107.02
 
Upvote 0
that was an easy one, just an UDF, but on what cell ? L9?
Explain every cell !
VBA Code:
Function Taxes(Earning)
     a = Range("TBL_Taxes").Value
     i = Application.Min(UBound(a) - 1, Application.Match(Earning, Application.Index(a, 0, 1), 1))
     Taxes = Application.WorksheetFunction.Trend(Array(a(i, 3), a(i + 1, 3)), Array(a(i, 1), a(i + 1, 1)), Array(Earning))(1)
End Function
example file
 
Upvote 0
Didn't expect a VBA solution thought it would be a formula which i could extrapolate to the other cells
So let's make it a little more difficult then...

First gross figure is in X8 then X16 then x24 until x425 for the 52 weeks of the year result for these will be in x4 x12 x20 until x420 example x8 = £1000 then X425 = £104.02
Second Gross figure is in x9 then x17 then x25 until x426 for the 52 weeks of the year results for these will be in xaa4 then aa12 then aa20 until aa426 example x9= £1500 then aa4=£

Thank you
 
Upvote 0
this is annoying.
Can you solve U2:AA9 with formulas or explanation about how it should work ?
I have no idea how to calculate those cells and i have no intention to read/interprete the added sheets.

Copying that to the next 51 weeks is peanuts.
 
Upvote 0
Book1
ABCDEFGHIJKLMNOPQR
4
5Class 1 National InsurancePer WeekPer YearEmployee
6Lower earnings limit (LEL)£123£6,3960%
7Primary Threshold (PT) 6th April 22 to 5th July 22£190£9,88013.25
8Secondary Threshold (ST)£175£9,10013.25%
9Upper Secondary Threshold (UST)£967£50,2703.25
10
11earning% taksCumulColumn1
12£0.000£0.00
13Example One£190.0113.25%£0.00Earnings
14£967.003.25%£102.95
15Gross Earnings£1,000.00£1,000.00£104.02What is needed is to be able to enter the earnings into cell a1 for instance and cell f1 returns the value then I can copy this formula down the sheet to the others cells to cover the 52 weeks of data
16£967.00-Example one £1000 earnings of this the £967 is taxed at the 13.25% and the £33 taxed at the 3.25% giving a total of £1.07 and £102.95 giving overall total of £104.03
17£33.00X3.25%£1.07
18
19£967.00
20£190.00
21£777.00X1325.00%£102.95
22
23
24
25Total£104.03
26
27
28Example TwoExample Two £715.25 earnings of this the £525 is taxed at the 13.25% as this is the amount above the £190 threshold giving overall total of ££69.56
29
30Gross Earnings£715.25
31£967.00-
32£0.00X3.25%£0.00
33
34£967.00
35£190.00
36£525.00X1325.00%£69.56
37
38
39£69.56
40
41
Information
Cell Formulas
RangeFormula
C6:C9C6=D6/52
L13:L15L13=+L12+(J13-J12)*K12
B17,B21B17=B15-B16
E17E17=B17*E9/100
E21E21=B21*E7/100
E25E25=E17+E21
E32E32=B32*E9/100
E36E36=B36*E7/100
E39E39=E32+E36


Hope this makes more sense its hard to break down sometimes what is required in such a clear way.. the £525 should be £525.25 giving total of £69.60
 
Last edited:
Upvote 0
i had that knowledge already 2 days ago, with the udf "Taxes", see tab "example taxes" and also cells AA3, AA11, AA19, ... but is it correct to calculate it on X8, X16, X24, ... ???
Taxes is done, READY !!!
Overtime

What about all those other numbers within the range U2:AA9.
 
Upvote 0
hi finally had time to go over your solution.. It is a tax but the solution I was seeking refers to the two NI Payments not the Tax
Cells X4 and AA4 X4 results from looking at the figure in X8 (£70.60 and AA4 gets its figure from X9 (£59.81)
try this link it shows the official figures from a pay slip it might clarify what i mean
 
Upvote 0
Finally, there is a tax-relation between AA4-X9 and X4-X8.:mad:
You stated that X4 = 70.60, in my opinion it's 70.26 o_O
That tax-udf is ready since ... but was useless because i didn't know on which figure i had to use it.

We make no progress, I'm asking you the origin of every figure in that range U2:AA9.
For example, the 2 cells mentioned, X8 and X9 ???
i'm not at all specialised in british taxes.
 
Upvote 0
x3 is 0.5% of x8
x4 is from the tables nothing for first £190 then 13.25% upto £967 the 3.25% based on x8
x5 is added manually each week
x6 is based on aI2:aj5
x8 is k9-x5-x6
aa3 is k9-information!c22 then *13.25%
aa4 is from tables nothing for first £190 then 13.25% upto £967 then 3.25% based on X9
hope this explains everything
i believe the wage slip i sent is wrong because they get there x3 figure from x9 but i think it should be from x8 because x9 is got by k9-x3:x6 but you cant get x3 until you have x9
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,228
Members
453,025
Latest member
Hannah_Pham93

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