sleek12
Board Regular
- Joined
- May 3, 2014
- Messages
- 62
- Office Version
- 365
- Platform
- Windows
I have the following vlookup formula for taxes, is there a way it can be converted to xlookup;-
'=VLOOKUP(B2,Rates,2,TRUE)+VLOOKUP(B2,Rates,3,TRUE)*(B2-VLOOKUP(B2,Rates,1,TRUE))-2400'
the formula is located in C2
The rates are here;-
thanks for your help
'=VLOOKUP(B2,Rates,2,TRUE)+VLOOKUP(B2,Rates,3,TRUE)*(B2-VLOOKUP(B2,Rates,1,TRUE))-2400'
the formula is located in C2
tax-rates (1)PAYE.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Taxable Income | After NSSF | Tax on this income | NHIF | NSSF | Nett pay | ||
2 | 69,930.00 | 69,730.00 | 8,932.00 | 1,700.00 | 200 | 59,098.00 | ||
Workings |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2 | B2 | =A2-200 |
C2 | C2 | =VLOOKUP(B2,Rates,2,TRUE)+VLOOKUP(B2,Rates,3,TRUE)*(B2-VLOOKUP(B2,Rates,1,TRUE))-2400 |
F2 | F2 | =A2-C2-D2-E2 |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
Rates | =Mastersheet!$A$1:$C$5 | C2 |
The rates are here;-
tax-rates (1)PAYE.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | 0 | 0 | 0.1 | ||
2 | 24000 | 2400 | 0.15 | ||
3 | 40667 | 4900 | 0.2 | ||
4 | 57334 | 8233 | 0.25 | ||
5 | |||||
Mastersheet |
thanks for your help