Using Excel to calculate income tax

ExcelBeginner34

New Member
Joined
Mar 2, 2019
Messages
41
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am trying to use Excel to calculate income tax. The tax system has a number of rates applied to each band as follows

Lower Limit (H22) Upper Limited (I22) Rate (J22)
Tax Free Allowance (G23) £0 £12,500 0%
Starter Rate (G24) £12,500 £14,549 19%
Basic Rate (G25) £14,549 £24,999 20%
Intermediate Rate (G26) £24,999 £43,430 21%
Higher Rate (G27) £43,430 £150,000 41%
Top Rate (G28) £150,000 £250,000 46%

So if the Salary was £40,000 before tax:

  • The first £12,500 is tax free
  • The next £2,049 (14,549 - 12,500) is taxed at 19%
  • The next £10,450 (24,999 - 14549) is taxed at 20%
  • and so on until you reach the total salary.

I am trying to calculate each bracket i.e £2,049*0.19 = 389.31 in a separate cell

  • Starter Rate E22
  • Basic Rate E23
  • Intermediate Rate E24
  • Higher Rate E25
  • I don't need the top rate as salary is unlikely to ever go above £150k.

The taxable income i.e gross salary less tax free allowance of £12,500 is currently in cell E20. So for example at £40k this would be £27,500.

I have tried using the IF function but I am just a beginner and not having much luck. Any help would be much appreciated.

Many thanks
 
Yes - in B5 I now have =VBAProject.Module1.IncomeTax(B1). However, this is providing a figure in B5 of £6,349.41 instead of the £5,629.50 shown on your table in post 6? Not sure what I am doing wrong.
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
The 1dd is just the sheet name where I prepared an example.
You can place the table with Brackets and Rates wherever you want.
It is not essential to use named ranges; they can make the formula clearer.
Does the example provide the answer that you require?
What does you tax authority say the tax is for $150,000?
 
Upvote 0
I did not review or edit the UDF that you received above.

I prepared a quick UDF; an expert with VBA can edit and/or enhance it for you.

Code:
Function IncomeTax2(Amt As Double) As Double
If Amt <= 12500 Then IncomeTax2 = Amt * 0
If Amt > 12500 Then IncomeTax2 = 0 + (0.19 * (Amt - 12500))
If Amt > 14550 Then IncomeTax2 = IncomeTax2 + (0.01 * (Amt - 14550))
If Amt > 25000 Then IncomeTax2 = IncomeTax2 + (0.01 * (Amt - 25000))
If Amt > 43430 Then IncomeTax2 = IncomeTax2 + (0.2 * (Amt - 43430))
If Amt > 150000 Then IncomeTax2 = IncomeTax2 + (0.05 * (Amt - 150000))
End Function
 
Last edited:
Upvote 0
col Lcol P
full bandcum full band
0000row 4
up to 1000 tax free10010.1005001
1001 to 5000 10%50010.2540040020001
5001 to 20000 25%200010.43750415075001
20001 to 75000 40%750010.52200026150
75001 upwards 50%99999990.5row 9
100001649.75
formula giving 1649.75
=VLOOKUP(I14,mytable,4)+(I14-VLOOKUP(I14,mytable,1))*VLOOKUP(I14,mytable,2)
mytable is L4:P9

<colgroup><col span="9"><col><col span="10"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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