Calculating sales tax in formula

Outdoorsman80

Board Regular
Joined
Oct 4, 2014
Messages
61
Office Version
  1. 365
Platform
  1. Windows
I think I'm too tired and am over thinking this one.

I have a chart that I'm trying to calculate the total cost for x amount of products at a price before tax and need to add in that tax for a total cost.

For example:
Chart.xlsx
ABCD
42TotalsBags918
43Lbs.440879
44$ 24.16Cost$ 224.10
Chart
Cell Formulas
RangeFormula
C42:D42D42=SUM(D2,D7,D12,D17,D22,D27,D32,D37)/50*2
C43:D43D43=SUM(D2,D7,D12,D17,D22,D27,D32,D37)*2
C44C44=(C42*A$44)+(A$44*C42*5.5%)

You can see in C44, the formula is not coming out right, it should equal $229.39. I've tried different formulas, etc but I just can't make Excel come out right... what am I doing wrong?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Check in File -> Options -> Formulas -> Calculation options that calculation hasn't been taken off Automatic
 
Upvote 0
It's set to auto, even exiting the document and going back it does not show correct answer.
 
Upvote 0
What exactly is the value in C42, it's probably 8 point something, rather than 9
 
Upvote 0
If I'm doing my math right for the tax, product is $24.16, tax is 5.5%, so 24.16*.055=$1.32. $1.32+24.16=25.48. 25.48*9=$229.39. Excel shows $224.10.
 
Upvote 0
That does not answer my question.
 
Upvote 0
I'm sorry- I misread, it is 8.79. Looks like that's why it's doing it then. How do I fix that? I formatted that row to no decimals as they are bags, you can't have 8.79 bags. :)
 
Upvote 0
You are dividing by 50, which is where the decimals come in. Try wrapping your formula in the Round function.
 
Upvote 0
I don't see how I can do that with that forumula.

It's taking Pounds per week to feed an animal, each week has a decimal, it needs to be precise. =SUM(C2,C7,C12,C17,C22,C27,C32,C37)/50*2. Each C cell has something like 2.4, 5.5, 5.7, etc.
So it adds that up over 8 weeks, divides it by 50 as the feed bags are 50lbs. The formumla is telling me how many bags I need and being told 8.79 means it's really 9.
 
Upvote 0
In that case you can use roundup, rather than round.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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