Forum Discussion
Formula to calculate Canadian taxes
I'm struggling to figure out a formula for Canadian Taxes. We now have to include taxes in our product prices on Etsy. So I need the formula to calculate what I have to remit to the gov. Here's an example of the info I get from Etsy. What I'm trying to do is that the first column says "AB" to calculate the tax rate of 5% and return that amount in another column on the same row. If it reads "ON" return the $49.99 x 13% and so on for each row for each appropriate tax rate. Is there a way of doing this?
AB | T9K 2C5 | Canada | CAD | $119.99 |
ON | L4M6Z8 | Canada | CAD | $49.99 |
ON | L6M0Z4 | Canada | CAD | $119.99 |
AB | T8R 1B3 | Canada | CAD | $59.99 |
ON | M1N1y6 | Canada | CAD | $99.50 |
NS | B0M 1S0 | Canada | CAD | $104.99 |
AB | T1W 2C3 | Canada | CAD | $89.99 |
ON | L0R1H1 | Canada | CAD | $69.99 |
ON | P3B 1X6 | Canada | CAD | $109.99 |
AB | T5r2h7 | Canada | CAD | $49.99 |
ON | N2A 3G7 | Canada | CAD | $69.99 |
- Riny_van_EekelenPlatinum Contributor
EagleAD Best to create a lookup table with all the tax rates per state and then use VLOOKUP or XLOOKUP is your Excel version supports it. But you could also use LOOKUP . See attached. Several possible solutions in it.
By the way, I just made up something for NS.
- EagleADCopper ContributorThanks for the help! With your guidance and a bit of google, I ended up using the IFS formula: =IFS(M4="ON",".13",M4="AB",".05",M4="BC",".12",M4="MB",".12",M4="SK",".11",M4="QC",".14975",M4="NS",".15",M4="NB",".15",M4="NL",".15",M4="PE",".15",M4="NT",".05",M4="NU",".05",M4="YT",".05",TRUE,"0") Too many variable for the =IF command. This covered every province and excluded anything not in Canada. I then take the result and multiply it by the cost of the product column. Thanks again for your help.
- Riny_van_EekelenPlatinum Contributor
EagleAD Your choice to do it that way, but I would use a look up table. And, by the way, why did you put the tax rates between quotes? That turns them into texts. Although Excel will interpret them as a number as soon as you do some arithmetic with them, better to use numbers from the start.