Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Asta
 
Posts: n/a
Default Subtracting and multiplying tax numbers witht he IF function

Ok here is what i have i have created a payroll. now i need to add this:

if pay is $0 - $95 deduct $0 plus 0c per dollar over 0
if pay is $96-$345 deduct $0 plus 20c per dollar over 96
if pay is $346-$480 deduct $63 plus 25c per dollar over 346
if pay is $481-$672 deduct $96 plus 40c per dollar over 481
if pay is $673-$961 deduct $183 plus 47c per dollar over 673
if pay is $962+ deduct $308 plus 48c per dollar over 962

And make it automatically deduct from the Gross Income.
I have tried this
=IF(C4300,C4<400,(C4-43)*0.36,IF(C4401,C4<500,(C4-60)*0.45,IF(C4501,<600,(C4-200)*0.60)))

(numbers were just to try out)
and it didnt work.
How would i go about creating such a formula? or is there a different way of
handling it?
  #2   Report Post  
Sandy Mann
 
Posts: n/a
Default

I made a table from your conditions as follows:

D1:D6 contains: 0, 95, 345, 480, 672, 961
E1:E6 contains: 0, 0, 63, 96, 183, 308
F1:F6 contains: 0, 0.2 0.25, 0.4, 0.47, 0.47

Then with the Pay in A1 enter the formula:

=A1-(VLOOKUP(A1,D1:F6,2)+(A1-VLOOKUP(A1,D1:F6,1))*VLOOKUP(A1,D1:F6,3))

in B1 to get the pay after tax.

HTH

Sandy


--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Asta" wrote in message
...
Ok here is what i have i have created a payroll. now i need to add this:

if pay is $0 - $95 deduct $0 plus 0c per dollar over 0
if pay is $96-$345 deduct $0 plus 20c per dollar over 96
if pay is $346-$480 deduct $63 plus 25c per dollar over 346
if pay is $481-$672 deduct $96 plus 40c per dollar over 481
if pay is $673-$961 deduct $183 plus 47c per dollar over 673
if pay is $962+ deduct $308 plus 48c per dollar over 962

And make it automatically deduct from the Gross Income.
I have tried this

=IF(C4300,C4<400,(C4-43)*0.36,IF(C4401,C4<500,(C4-60)*0.45,IF(C4501,<600,
(C4-200)*0.60)))

(numbers were just to try out)
and it didnt work.
How would i go about creating such a formula? or is there a different way

of
handling it?



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Take a look he

http://www.mcgimpsey.com/excel/variablerate.html

In article ,
"Asta" wrote:

Ok here is what i have i have created a payroll. now i need to add this:

if pay is $0 - $95 deduct $0 plus 0c per dollar over 0
if pay is $96-$345 deduct $0 plus 20c per dollar over 96
if pay is $346-$480 deduct $63 plus 25c per dollar over 346
if pay is $481-$672 deduct $96 plus 40c per dollar over 481
if pay is $673-$961 deduct $183 plus 47c per dollar over 673
if pay is $962+ deduct $308 plus 48c per dollar over 962

And make it automatically deduct from the Gross Income.
I have tried this
=IF(C4300,C4<400,(C4-43)*0.36,IF(C4401,C4<500,(C4-60)*0.45,IF(C4501,<600,(C
4-200)*0.60)))

(numbers were just to try out)
and it didnt work.
How would i go about creating such a formula? or is there a different way of
handling it?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"