Extracting brackets from Pay for different Calculations

simonkingston

New Member
Joined
Feb 14, 2008
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I am creating a table to calculate earnings from a pension, based on different criteria when they do some extra work also.

So, they earn $950/fortnight from the government pension, if they do some work for the week, the first $150 gross that is earned, the pension isn't touched. The next $100 gross earned; the pension is reduced by 50c for each dollar earned between $151 and $250. Each dollar earned beyond $250 gross, 60c is removed from the pension.

Examples:
1. They earn $140 for the fortnight, pension isn't touched, they get the full $950 plus the earnings of $140, total $1090
2. They earn $230 for the fortnight, first $150 of pension isn't touched, next $80 is reduced by 50c per dollar, so $40 is subtracted from the pension bringing it down to $910 plus the earnings of $230, total $1140
3. They earn $500 for the fortnight, first $150 of pension isn't touched, next $100 is reduced by 50c per dollar, so $50 is subtracted from the pension, and remaining $250 is reduced by 60c per dollar, so $150 is subtracted from the pension, bringing it down to $750 plus the earnings of $500, total $1250

I hope I have explained this properly enough to understand what I'm trying to achieve.

I have pasted what I have done so far, its clumsy and I feel there must be some formulas I can use, especially for that NEXT 100 calculation.

Pension Earnings Calculator.xlsx
ABCDEFGHIJKL
1Work Earnings
2Hours/FortnightRateGross
340$ 28.00$ 1,120.00
4
5Pension$ 950.00
6
7
8Calculations
9WorkPension Deductions
10First 150$ 150.00
11Next 100$ 250.00$ 100.00$ 50.00This should never be more than $50 (this is where I am having a problem working out the correct calculation)
12After 250$ 870.00$ 522.00This will be the balance after $250 x60c
13Total$ 572.00
14Pension Balance Paid$ 378.00
15Pension PLUS Earnings$ 1,498.00
Sheet1
Cell Formulas
RangeFormula
D3D3=A3*B3
B11B11=IF(D3<151,0,D3-(D3-C10-100))
C11C11=IF(B11=0,0,D3-(D3-B11+C10))
C12C12=IF(D3<251,0,D3-250)
D11D11=(C11*0.5)
D12D12=(C12*0.6)
D13D13=SUM(D11:D12)
D14D14=IF(D13>D5,0,D5-D13)
D15D15=D14+D3


I look forward to getting any feedback or help.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I've just realised, the formula in the yellow line to calculate the work hours bracket over $150 but less than $251, doesn't work when the bracket falls between those numbers. Like in example 2 above
 
Upvote 0
Commission Tax Fee.xlsm
BCD
191,090.000.001,090.00
201,180.0040.001,140.00
211,450.00200.001,250.00
222,070.00572.001,498.00
23
1e
Cell Formulas
RangeFormula
C19:C22C19=SUM((B19>aB)*(B19-aB)*aR)
D19:D22D19=B19-C19


More detailed information
Commission Tax Fee.xlsm
ABCD
1Work Earnings
2Hours/FortnightRateGross
340281,120.00
4
5Pension950.00
6Total2,070.00
7
8Calculations
900%
10110050%
11120060%
12
13Net
14109001090
151180401140
1614502001250
1720705721498
1e
Cell Formulas
RangeFormula
D3D3=A3*B3
D6D6=D3+D5
C14:C17C14=SUMPRODUCT(--(B14>$B$9:$B$11),B14-$B$9:$B$11,$C$9:$C$11-$C$8:$C$10)
D14:D17D14=B14-C14
B15B15=950+230
B16B16=500+950
 
Upvote 0
Review cell C14 with Excel's formula evaluate
SUMPRODUCT(--(B14>$B$9:$B$11),B14-$B$9:$B$11,$C$9:$C$11-$C$8:$C$10)

the brackets are shown in B9:B11 and the rate differential are the net of the C$9:$C$11-$C$8:$C$10
The SumProduct calculates the amount required to deduct.

Since you have Excel 365, you can use the sum formula.
I named the bracket and rate differential information with Name Manager.
The bracket information is named aB and the rate differential is named aR.
 
Upvote 0
or you could use an arithmetic approach

One calculates on the brackets and the other is similar to the formulas.

Commission Tax Fee.xlsm
ABCDE
6Total2,070.00
7
8Calculations
900%0572
10110050%50
11120060%572
121.00E+10
1e
Cell Formulas
RangeFormula
D6D6=D3+D5
E9E9=(D6>1100)*(D6-1100)*0.5+(D6>1200)*(D6-1200)*(0.6-0.5)
D9:D11D9=MIN(B10-B9,$D$6-B9)*C9+D8
B12B12=10^10
 
Upvote 0
If you just want to calculated on the work earnings, the above information still applies.

Commission Tax Fee.xlsm
ABCDEFGH
24BracketsRates
25Work earningsDeduction
26140.000.000.000%1,090.00
27230.0040.00150.0050%1,140.00
28500.00200.00250.0060%1,250.00
291,120.00572.001,498.00
30or
31140.000.00
32230.0040.00
33500.00200.00
341,120.00572.00
1e
Cell Formulas
RangeFormula
C26C26=SUM((B26>$E$26:$E$28)*(B26-$E$26:$E$28)*($F$26:$F$28-$F$25:$F$27))
C27:C29C27=SUM((B27>aBB)*(B27-aBB)*(aRR))
H26:H29H26=950+B26-C26
C31:C34C31=(B31>150)*(B31-150)*0.5+(B31>250)*(B31-250)*(0.6-0.5)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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