Learn Excel - Progressive Tax Rate - Podcast 2065 - YouTube

Channel: MrExcel.com

[0]
Learn Excel from MrExcel Podcast, Episode 2065: A Formula for Progressive Tax Rates
[7]
Alright, so I got this comment on YouTube from Asad, who is trying to come up with a
[13]
formula that will calculate his income tax.
[15]
He says he has an income tax statement they download from office.com.
[17]
I just made a quick little one here with income and income year-to-date, going across.
[23]
So, we're trying to figure out the tax for this, alright.
[27]
So to get started, the first thing we have to do is: take Asad's Income Tax card and
[34]
build a little table somewhere out of the way, alright?
[37]
So, I just decided to come down here, I might go over to call them, you know, Z or something
[41]
like that.
[42]
And you take this information and you convert it into a table with 3 columns, alright.
[46]
So, if you're at 0 dollars, you pay 0 Tax and 0 percent of any amount over 0.
[52]
But once you hit 400,000, then you're paying 7% of the amount over 400,000.
[60]
And 500,000, you’re paying $7,000 plus 10% of the amount over 500,000.
[66]
So, this lookup table here is going to become crucial towards solving the problem.
[74]
Alright, well hey, let's just dive in straight away and do this.
[78]
So, we're going to use a function called VLOOKUP.
[80]
And I use VLOOKUP a lot, the other version, the exact match version.
[84]
But in this case, we're going to use the, what they call the Approximate Match version.
[90]
So we go look for this amount, 249,351, in this table.
[95]
Now, press F4 there to lock that table down.
[99]
In other words, put the dollar signs in.
[102]
And then, what I want is I want the base tax rate, so that's the second column and then
[108]
comma, True.
[109]
You can leave the True out but I always put the True in, just that way I know that it's
[113]
there, alright?
[114]
And see, that's coming up with just this amount, the 7,000, the 32,000.
[120]
If I copied across, you’ll see how that part is working.
[125]
That certainly isn't the whole formula.
[126]
I just wanted to show what that one piece is doing.
[130]
And I'm going to be very clever here and copy the formula except for the equal sign.
[134]
So I selected - because I'm going to reuse that formula over and over and over again.
[141]
So, in addition to that, we have to use the percentage, alright?
[144]
And the percentage is over in Column 3 of the table.
[148]
So, right there is the percentage.
[150]
That percentage of the amount in B16 that is greater than the amount in Column 1 of
[158]
the table.
[159]
So, *(B16- , and again, we're going to put another VLOOKUP in there, this time it’s
[167]
using table Column number 1.
[170]
Alright, and there's our formula.
[173]
We'll copy that formula across like that, alright?
[179]
And that should be the right answer; although, you know, I realized that's probably a pretty
[183]
complicated formula.
[184]
And if this is something really important, you know, like homework, then you would want
[189]
to at least do some checks to make sure that it's going to work.
[195]
Alright, so I paused the video there and here's my set of checked formulas.
[201]
Basically just breaking down this formula that has – 1, 2, 3, 4 components and doing
[205]
it one at a time.
[206]
So here is the base rate using VLOOKUP,2.
[211]
Here's the Percentage using VLOOKUP,3.
[213]
Here's the Initial Amount using VLOOKUP,1.
[218]
And then, calculating the amount over, that would be this amount 100 – Ah, the income
[226]
up there in M16 minus the base, doing the calculation of the percentage: 15% times that
[235]
amount, and then finally, just a simple addition to add the Tax.
[238]
And so, hopefully, all of these formulas are going to match those formulas.
[241]
Let's put a little formula here where we say is the result of all those smaller formulas
[245]
equal to the one big formula.
[247]
We're hoping to get there is all TRUES, all the way across.
[251]
And sure enough that works.
[253]
So at that point, we know that our big formula up there is working.
[257]
Now, the problem is about- with this is that we have that table sitting off to the side.
[263]
And if you're looking for a single formula to do this, it would be possible to do that.
[269]
So I'm going to do one formula, check out this cool trick: Ctrl+’ . I guess Ctrl apostrophe,
[275]
really brings the formula down, doesn't change any of the references and leaves the formula
[281]
in Edit Mode.
[282]
And what I can do here is click right there and press the F9 key that will embed that
[289]
table right in the formula.
[295]
And then here, this lookup table, choose those characters, press the F9 key.
[301]
And finally here, select the Lookup table one more time and press the F9 key, and we
[306]
get one monster formula that will do everything without having the Lookup table in the workbook.
[315]
Asad, if this actually is homework for you, I'll just go ahead and turn that one in and
[319]
I'll make your professor's head spin.
[321]
You probably, you know, get high marks for the exercise.
[325]
Alright, way to learn all sorts of formulas about Excel.
[329]
Check out my new book, Power Excel with MrExcel, the 2017 Edition.
[333]
Includes some Power BI, and Power Query and things like that.
[337]
Wrap up of this episode: We tried to create a formula to create a progressive tax rate.
[341]
The most important thing is to set up that table in ascending order with the amounts
[344]
from your income tax card, 3 columns.
[346]
You'll do 3 Approximate Match VLOOKUPS to get the base tax, the percentage and the start
[351]
of the level.
[352]
You subtract that Start Level from the income for the period, multiplied by the percentage
[355]
and then add the base.
[357]
Then near the end there, use Ctrl - I call this Ctrl ditto, Ctrl+’ to copy a formula
[363]
down one cell without changing the references and leave it in Edit Mode.
[367]
And then finally, the F9 trick from Mike Girvin, Excel Is Fun, to embed the lookup table into
[372]
the formula.
[373]
Alright, I want to thank Asad for sending that question in.
[374]
I want to thank you for stopping by.
[376]
We'll see you next time for another netcast from MrExcel.