将这个自定义函数改写用数组
Function 应纳税(s)
Dim x
x = s - 1600
Select Case x
Case Is < 0: 应纳税 = 0
Case Is < 500: 应纳税 = x * 0.05
Case Is < 2000: 应纳税 = x * 0.1 - 25
Case Is < 5000: 应纳税 = x * 0.15 - 125
Case Is < 20000: 应纳税 = x * 0.2 - 375
Case Is < 40000: 应纳税 = x * 0.25 - 1375
Case Is < 60000: 应纳税 = x * 0.3 - 3375
Case Is < 80000: 应纳税 = x * 0.35 - 6375
Case Is < 100000: 应纳税 = x * 0.4 - 10375
Case Else: 应纳税 = x * 0.45 - 15375
End Select
End Function
幕布斯7119047
慕工程0101907