i want to know if this is possible... i think it is i just dont know where to start..
here is my situation:
i want to calculate income tax to be withheld from a certain ammount of dollars, this is for certified payroll forms that need to be turned in for government jobs
the things that affect how much will be taken out is based on:
married or single status (M or S in my excell sheet)
Ammount of dependants
Ammount made for this payroll.
here is an example how the table looks like in the 2005 employers tax guide
------------------------------------
If Married
If wages are at least: 740
But less than: 750
Number of dependants: 0
Income tax withheld: 75
Number of dependants: 1
Income tax withheld: 65
Number of dependants: 2
Income tax withheld: 56
Number of dependants: 3
Income tax withheld: 47
now theres a different table for 750-760, 760-770, etc...
dependants go up to 10... you get the idea.
now if a person is single its a different table
if the Ammount made this payroll: 740-760
Number of dependants: 0
Income tax withheld: 83
etc....
basically what i want to do is make an if then else statement or something... i dont know how i would tackle it though
what im thinking is this:
3 sheets, one for the certified, the second for the married table, the third for the single table
in english this is what the code would look like:
If ($person) = married then go to: sheet 2
else:
go to: $sheet 3
$sheet 2:
If ($gross ammount earned) < $751 then
go to: Row 3
$row 3
if ($dependants) = 0 then ($withholding ammount) = 75
else:
if ($dependants) = 2 then ($withholding ammount) = 65
else:
if ($dependants) = 3 then ($withholding ammount) = 67
$sheet 3
"same thing as above, different numbers"
get the idea?
any help would be greatly appreciated, this would make my certified payroll go by hours faster, its alot of information to put in, but will make 2006 certified payroll be much much quicker.
Bookmarks