Hi
As this tax scale table will be edited only occassionally, you can define it
with series of named ranges instead - as bonus you formulas will be nicer to
look at too.
An example with my formula here (I added parts for 0-tax to formula, to get
calculating fully formalized in my example, and also edited it a bit).
The OP has determined 3 tax ranges:
The part of gross between >0 and <=308 is taxed with 0%
The part of gross between >308 and <=858 is taxed with 10%
The part of gross between >858 and <=2490 is taxed with 15%
The part of gross >2490 isn't given, let's be 0%
Defined named ranges will be p.e.:
Lim1=308
Lim2=858
Lim3=2490
Tax1=0
Tax2=0.1
Tax3=0.15
Tax4=0
The general formula will be
=Tax1*IF(A1>Lim1,Lim1,A1)+Tax2*IF(A1>Lim1,IF(A1>Lim2,Lim2,A1)-Lim1,0)+Tax3*I
F(A1>Lim2,IF(A1>Lim3,Lim3;A1)-Lim2,0)+Tax4*IF(A1>Lim3,A1-Lim3,0)
It's very easy to expand, when additional ranges are added to tax scale -
add named ranges and according number of parts to formula, and edit the last
part of formula.
As about different scales for married and single employees - I'm confused.
Maybe singles have some additional tax, which can be calculated separately?
For OP, we can drop parts of formula with Tax=0
=Tax2*IF(A1>Lim1,IF(A1>Lim2,Lim2,A1)-Lim1,0)+Tax3*IF(A1>Lim2,IF(A1>Lim3,Lim3
;A1)-Lim2,0)
--
(When sending e-mail, use address
(E-Mail Removed))
Arvi Laanemets
"Ken Russell" <(E-Mail Removed)> wrote in message
news:3fa9bc91$0$3502$(E-Mail Removed)...
> I'm afraid I didn't make myself clear. The table you set up would contain
> exactly the data you gave us in your post, not the whole tax schedule.
>
> The LOOKUP formula simply accesses this very short table and does its
> calculations based on the thresholds in the table.
>