Hi All,
Please I need help with SUMPRODUCT formula.
I am trying to calculate Income tax for each category of employees and then add the results up to get a TOTAL income tax for all employees.
Here is the calculation for each category of employees, using sumproduct. Each of them gives the correct tax payable for each category:
a) Income Tax for Owner – Annual Salary is in Cell R8:
=SUMPRODUCT(--(R8>{10600;31785;150000}), (R8-{10600;31785;150000}), {0.2;0.2;0.05})
b) Income tax for Permenent Staff – Annual Salary is in Cell R9:
=SUMPRODUCT(--(R9>{10600;31785;150000}), (R9-{10600;31785;150000}), {0.2;0.2;0.05})
c) Income tax for Part-time Staff – Annual Salary is in Cell R10:
=SUMPRODUCT(--(R10>{10600;31785;150000}), (R10-{10600;31785;150000}), {0.2;0.2;0.05})
1.My problem is how to combine all the three formulas into one formula by including the cell references into one formula.
2.As you can see, apart from the cell numbers (R8, R9, R10), every other thing in the formula is the same for each of the groups.
3.If I have to get a combined PAYE total for all the staff, I am tempted to combine all the three formulas with a ‘plus’ as follows:
=SUMPRODUCT(--(R8>{10600;31785;150000}), (R8-{10600;31785;150000}), {0.2;0.2;0.05})+ SUMPRODUCT(--(R9>{10600;31785;150000}), (R9-{10600;31785;150000}), {0.2;0.2;0.05})+ SUMPRODUCT(--(R10>{10600;31785;150000}), (R10-{10600;31785;150000}), {0.2;0.2;0.05})
4.Please, how can I summarise the formula by and make it shorter by grouping the cell numbers together with just one set of formula without making it as long as it is above?
5.I have tried something (see below) but I can’t get it to work correctly:
=SUMPRODUCT(--(R8;R9;R10)>{10600;31785;150000}), (R8;R9;R10)-{10600;31785;150000}), {0.2;0.2;0.05})
Please kindly help.
Thank you.
Buddy8
Bookmarks