Thanks for some of the tips. I could not seem to find what I was looking
for via the google search.
I'm starting to think that using standard formulas looks pretty involved and
probably unmaintailable in the long run..
I wanted to try my hand at VB so I took this opportunity to get my feet wet,
thinking a custom function was the way to go. However, I added this
function to my worksheet, but I can't seem to call it from a cell in the
worksheet. I'm guessing I've done something wrong in either the function or
where I put it in the worksheet, but I don't know.
Any help here would be appreciated.
================================
Public Function federalTax(income As Integer) As Integer
' 2003 Tax Table
'Income But Pay This Plus Of the
'Is Over Not Over Amount This % Excess Over
' 0 14,000 0 10% 0
' 14,000 56,800 1,400 15% 14,000
' 56,800 114,650 7,820 25% 56,800
'114,650 174,700 22,283 28% 114,650
'174,700 311,950 39,097 33% 174,700
Select Case (income)
Case 0 To 13999 '10%
federalTax = 0 + income * 0.1
Case 14000 To 56799 '15%
federalTax = 1400 + ((income - 14000) * 0.15)
Case 56800 To 114649 '25%
federalTax = 7820 + ((income - 56800) * 0.25)
Case 114650 To 174699 '28%
federalTax = 22283 + ((income - 114650) * 0.28)
Case 174700 To 311949 '33%
federalTax = 39097 + ((income - 174700) * 0.33)
Case Else '0 or more than 312000
federalTax = 0
End Select
End Function
==============================
Don Guillett said:
Thanks for the thanks and the explanation.
the
delete button to kill off etc
ever since. Soooooooo
microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public posted
to
all. It's only when don't
then see what others
line
up