How to Calculate sales tax properly from a column of items

Bond00

Board Regular
Joined
Oct 11, 2017
Messages
153
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
I want to be able to get the totals and correct tax from this.
Really I just need a formula for getting the correct tax value.

assume these values are A1 through A12
$2,993.97
$5,492.30
$7,263.92
$4,759.96
$679.96
$1,119.96
$3,914.95
$820.99
$1,183.99
SubTotal: =SUM(A1:A9)
Tax: ???
Total: =A10+A11
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Its not quite that simple sadly. Each item is taxed and rounded down or up on a per item basis. So adding them all up and then figuring tax afterwards doesn't give the correct result.
See the difference here:
Book4
ABC
1TaxReal Tax
2$2,993.97179.6382179.64
3$5,492.30329.538329.54
4$7,263.92435.8352435.84
5$4,759.96285.5976285.60
6$679.9640.797640.80
7$1,119.9667.197667.20
8$3,914.95234.897234.90
9$820.9949.259449.26
10$1,183.9971.039471.04
11
12tax =$1,693.80$1,693.82
Sheet1


So the correct tax amount is 1693.82
Is there a formula that can get each values rounded tax value before doing the sum of it?
Every search I've done and seen hasn't done it correctly. Its always just taking the total and x by the tax % which wont always give the right output. Even youtube vids of how to do this are wrong.
 
Upvote 0
Nice formula didn't know about the + in front making it make a list like that (I'm used to using older ver's of excel). =ROUND(+A2:A10*0.06,2)
The issue is I don't want to list all the tax values to the side of the $ values. I just need it to give the total result at the bottom as 1 total value like the top post.
Is there a way do just do that?

Edit:
Oh never mind i see this will work. =SUM(ROUND(+A2:A10*0.06,2))
But only if there is no blank spaces in-between the numbers. Is there a way to fix or account for that? Sometimes there will be some blank spaces between the #'s.
Maybe something like if empty space or if cell isnt a # then assume/replace it with 0?
 
Last edited:
Upvote 0
Ok very odd, it wouldn't work before but if I added 0 in all the blank spaces it then worked, and if i went back and deleted those 0's again it still worked. Why would that be?
1736028270677.png
1736028283132.png


So if the formula was entered when the spaces were already blank it gave the #VALUE error but adding 0s in blank spaces fixed it, but then deleting them after didn't make it go back to being a #value error again?
It seems to work with blank cells now, not sure why it didn't the first time. I clicked in the blank cell when it had the value error and then clicked out of it and it then worked. So no idea why..
 
Last edited:
Upvote 0
I cannot replicate the problem that you cite. I am using Excel 365.

Can you post an example with the forum's tool named XL2BB?
 
Upvote 0
So if the formula was entered when the spaces were already blank it gave the #VALUE error but adding 0s in blank spaces fixed it, but then deleting them after didn't make it go back to being a #value error again?
It's most likely because those blank cells aren't truly blanks. Try =ISBLANK() on "empty" cells and what does it return?
 
Upvote 0

Forum statistics

Threads
1,226,059
Messages
6,188,634
Members
453,487
Latest member
LZ_Code

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