Help with math formula

Karlj

New Member
Joined
Feb 2, 2016
Messages
6
Hi all i am trying to use the formula from the tax website in excel but i don't know how to remove the numbers behind the decimal i.e the cents. The formula is as follows

Y = AX - B

Y is the tax

A and B are from the tax table

X is the weekly amount earned.

For example
fortnighly pay = 2912.63, To work out the tax we need to turn it in to a weekly amount so divide by 2, this gives me 1456.315. The next step is to remove the cents from the answer and then add .99 cents to it as follows 1456.315 - .315 + .99 = 1456.99

This is where i do not know how to do it. I want it all in the same equation as i am trying to make the cell automatically calculate the tax. Is there a way this can be done either through a formula or through VBA?.

Many Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
=ROUND((TRUNC((A5/2),0)+0.99)*(VLOOKUP((TRUNC((A5/2),0)),LU_Scale2,2))-VLOOKUP((TRUNC((A5/2),0)),LU_Scale2,3),0)*2

And is anyone able to help me with this formula i got off the tax website, it does what i want but i am unable to copy and paste it in to my spread sheet without it breaking
 
Upvote 0
Hey all,

Ok so i have managed to get the formula working to an extent but i know need to add in an IF statement.

So the formula i have at the moment is this:

=MROUND(SUM((ROUND(H3/2,0)+0.99)*0.345-162)*2,2)

What i need to do is put it in an IF statement saying that if H3 is greater than 1730 then use x otherwise use y

Is there anyone that could guide me on this please
 
Upvote 0
Use INT to remove the decimal part, i.e. the cents.
 
Upvote 0
Thanks Norie for your reply but I'm not sure how you mean to do it, I'm a beginner at excel.
 
Upvote 0
If your fortnightly pay is in H3 you could use this formula.


=INT(H3/2)+0.99
 
Upvote 0

Forum statistics

Threads
1,215,832
Messages
6,127,150
Members
449,366
Latest member
reidel

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