Spreadsheet to calculate Scottish income tax

DavidGee

New Member
Joined
Sep 28, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm trying to create a spreadsheet to calculate income tax payable for a given level of income. I know the tax bands (here), but I just can't work out what the formula should be to calculate how much of the total income would fall into each band, for any given level of income. Can anyone help with this, please? Thank you.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
N.B. I have no knowledge of your tax system.
Please review and test carefully.
I show the formula with named ranges or self contained; use the format that you prefer.

T202009c.xlsm
ABCDEFG
1Taxable amount150,000.0050,041.57Bracket [rB]RateRate Diff [rR]
250,041.5712,50019%19%
350,041.5714,58520%1%
425,15821%1%
543,43041%20%
6150,00046%5%
7
2c
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT(--(B1>rB),B1-rB,rR)
C2C2=SUMPRODUCT(--(B1>{12500;14585;25158;43430;150000}),B1-{12500;14585;25158;43430;150000},{0.19;0.01;0.01;0.2;0.05})
C3C3=SUMPRODUCT(--(B1>E2:E6),B1-E2:E6,G2:G6)
G2:G6G2=F2-N(F1)
Named Ranges
NameRefers ToCells
rB='2c'!$E$2:$E$6C3, C1
rR='2c'!$G$2:$G$6C3, C1


T202009c.xlsm
BC
520,000.001,479.15
6
2c
Cell Formulas
RangeFormula
C5C5=SUMPRODUCT(--(B5>rB),B5-rB,rR)
 
Last edited:
Upvote 0
Try this:
ABCDEF
1​
BandsRateAmount
2​
Income
1,00,000​
0​
0​
0.00​
3​
Tax
29,541.57​
12500​
19​
0.00​
4​
14585​
20​
396.15​
5​
25158​
21​
2,510.75​
6​
43430​
41​
6,347.87​
7​
150000​
26​
50,041.57​
Formula in B3: =VLOOKUP(C3,E3:G8,3)+(C3-VLOOKUP(C3,E3:G8,1))*VLOOKUP(C3,E3:G8,2)%
 
Upvote 0
Sorry.
Formula in C3: =VLOOKUP(C3,E3:G8,3)+(C3-VLOOKUP(C3,E3:G8,1))*VLOOKUP(C3,E3:G8,2)%
ABCDEFG
1​
BandsRateAmount
2​
Income
1,00,000​
0​
0​
0.00​
3​
Tax
29,541.57​
12500​
19​
0.00​
4​
14585​
20​
396.15​
5​
25158​
21​
2,510.75​
6​
43430​
41​
6,347.87​
7​
150000​
26​
50,041.57​
 
Upvote 0
Sorry.
Formula in C3: =VLOOKUP(C3,E3:G8,3)+(C3-VLOOKUP(C3,E3:G8,1))*VLOOKUP(C3,E3:G8,2)%
ABCDEFG
1​
BandsRateAmount
2​
Income
1,00,000​
0​
0​
0.00​
3​
Tax
29,541.57​
12500​
19​
0.00​
4​
14585​
20​
396.15​
5​
25158​
21​
2,510.75​
6​
43430​
41​
6,347.87​
7​
150000​
26​
50,041.57​
Hi, Thanks. But a couple of questions: 1. Can I download the sheet you've created, or do I need to copy everything? 2. How are the values on column G calculated? Thanks again.
 
Upvote 0
N.B. I have no knowledge of your tax system.
Please review and test carefully.
I show the formula with named ranges or self contained; use the format that you prefer.

T202009c.xlsm
ABCDEFG
1Taxable amount150,000.0050,041.57Bracket [rB]RateRate Diff [rR]
250,041.5712,50019%19%
350,041.5714,58520%1%
425,15821%1%
543,43041%20%
6150,00046%5%
7
2c
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT(--(B1>rB),B1-rB,rR)
C2C2=SUMPRODUCT(--(B1>{12500;14585;25158;43430;150000}),B1-{12500;14585;25158;43430;150000},{0.19;0.01;0.01;0.2;0.05})
C3C3=SUMPRODUCT(--(B1>E2:E6),B1-E2:E6,G2:G6)
G2:G6G2=F2-N(F1)
Named Ranges
NameRefers ToCells
rB='2c'!$E$2:$E$6C3, C1
rR='2c'!$G$2:$G$6C3, C1


T202009c.xlsm
BC
520,000.001,479.15
6
2c
Cell Formulas
RangeFormula
C5C5=SUMPRODUCT(--(B5>rB),B5-rB,rR)
Thank you very much for this. It works!
 
Upvote 0
I added the Vlookup alternative to the suggestions.
aB and aR are named ranges for Bracket and Rate Diff information.

T202009c.xlsm
BCDEFG
1200,000.0073,041.57Bracket RateScottish Tax
200
373,041.5712,50019%0.00
473,041.5714,58520%396.15
525,15821%2,510.75
643,43041%6,347.87
7150,00046%50,041.57
81E+30873,041.57
2c
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT(--(B1>aB),B1-aB,aR)
C3C3=SUMPRODUCT(--(B1>E3:E7),B1-E3:E7,F3:F7-F2:F6)
C4C4=VLOOKUP(B1,E2:G8,3)+(B1-VLOOKUP(B1,E2:G8,1))*VLOOKUP(B1,E2:G8,2)
E8E8=BigNum
G3:G8G3=MAX(0,(MIN($B$1,E3)-E2)*F2)+G2
 
Last edited:
Upvote 0
I added the Vlookup alternative to the suggestions.
aB and aR are named ranges for Bracket and Rate Diff information.

T202009c.xlsm
BCDEFG
1200,000.0073,041.57Bracket RateScottish Tax
200
373,041.5712,50019%0.00
473,041.5714,58520%396.15
525,15821%2,510.75
643,43041%6,347.87
7150,00046%50,041.57
81E+30873,041.57
2c
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT(--(B1>aB),B1-aB,aR)
C3C3=SUMPRODUCT(--(B1>E3:E7),B1-E3:E7,F3:F7-F2:F6)
C4C4=VLOOKUP(B1,E2:G8,3)+(B1-VLOOKUP(B1,E2:G8,1))*VLOOKUP(B1,E2:G8,2)
E8E8=BigNum
G3:G8G3=MAX(0,(MIN($B$1,E3)-E2)*F2)+G2
Thanks again. Can you just confirm what the range names are in this version, please?
 
Upvote 0
The names include the same data that is used in each example.
aB ={12500;14585;25158;43430;150000}
aR={0.19;0.01;0.01;0.2;0.05}
Example C2 highlight E3:E7 press F9 and you see {12500;14585;25158;43430;150000}

T202009c.xlsm
ABC
1Taxable amount200,000.0073,041.57
2c
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT(--(B1>aB),B1-aB,aR)


The self-contained formulas do not require the table of Brackets and Rates.
 
Upvote 0
OK, thanks, but I can't get this example to work. You say aR={0.19;0.01;0.01;0.2;0.05}, but aR appears to name the range in column F, which holds the rates, not the differential rates. And you'll see below that my copy isn't working (including the formulae in E8 and G8.
But the formula =SUMPRODUCT(--(J32>{12500;14585;25158;43430;150000}),J32-{12500;14585;25158;43430;150000},{0.19;0.01;0.01;0.2;0.05}) in your previous example works, and I've been able to copy it into a spreadsheet I'm using to calculate my pension income after tax, so thanks again for your help and work on this.

Taxable amount
200000​
196618.5​
BracketRateScottish Tax
0​
0%​
73041.57​
12500​
19%​
0​
73041.57​
14585​
20%​
396.15​
25158​
21%​
2510.75​
43430​
41%​
6347.87​
150000​
46%​
50041.57​
#NAME?​
#NAME?​
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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