If Statements with multiple criteria

KyleOliver

New Member
Joined
Apr 16, 2016
Messages
31
Hi,

I am stuck and need some help please.

In my excel workbook I have two worksheets namely "Payroll Register" & "TAX Rates & Rebates"

I am trying to reflect the employee's TAX Rebate based on his/her age as per the following table;

The "Payroll Register" worksheet contains the employee's details such as age and on the 2nd worksheet, "TAX Rates & Rebates" is the following TAX Rebate table;

Tax Rebate​​
​Primary (64yrs and younger) = R13 635
​​Secondary (65yrs and older) = R21 114
​Tertiary (75yrs and older) = R23 607


The formula I used is;
=IF($D$4<='TAX Rates & Rebates'!$L$9,'TAX Rates & Rebates'!$N$9,IF($D$4>='TAX Rates & Rebates'!$L$10,'TAX Rates & Rebates'!$O$10,IF($D$4>='TAX Rates & Rebates'!M10,'TAX Rates & Rebates'!$O$11)))


cell $D$4 is the employee's age which is reflected in the "Payroll Register" worksheet
cell 'TAX Rates & Rebates'!$L$9 has the value "64" (yrs of age)
cell 'TAX Rates & Rebates'!$N$9 has the value "R13 635" (TAX rebate amount)

cell $D$4 is the employee's age which is reflected in the "Payroll Register" worksheet
cell 'TAX Rates & Rebates'!$L$10 has the value "65" (yrs of age)
cell 'TAX Rates & Rebates'!$N$9 has the value "R21 114" (TAX rebate amount)

cell $D$4 is the employee's age which is reflected in the "Payroll Register" worksheet
cell 'TAX Rates & Rebates'!$L$10 has the value "75" (yrs of age)
cell 'TAX Rates & Rebates'!$N$9 has the value "R23 607" (TAX rebate amount)

This formula is not working and I don't know what else to do :confused:

Could someone please assist?

Many thanks,
Kyle
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi,

Your description of the Tax Table and your data layout Do Not match the cell references in your formula, start by correcting the sheet and/or the formula cell references.
Without the correct information, won't be able to help adjust your formula.
 
Upvote 0
Hi,

Here's sample Table and Data sheet I created as close to your description as I can get, see if this helps, if it doesn't, you need to clarify your layout.


Excel 2010
CDE
3PersonAgeTax Rate/Rebate
4A63R13 635
5B64R13 635
6C65R21 114
7D74R21 114
8E75R23 607
9F80R23 607
Payroll Register
Cell Formulas
RangeFormula
E4=IF($D4<='TAX Rates & Rebates'!$L$9,'TAX Rates & Rebates'!$N$9,IF($D4<'TAX Rates & Rebates'!$L$11,'TAX Rates & Rebates'!$N$10,'TAX Rates & Rebates'!$N$11))



Excel 2010
LMN
8Tax Rebate??
964R13 635
1065R21 114
1175R23 607
TAX Rates & Rebates
 
Upvote 0
Hi,

Here's sample Table and Data sheet I created as close to your description as I can get, see if this helps, if it doesn't, you need to clarify your layout.

Excel 2010
CDE
PersonAgeTax Rate/Rebate
AR13 635
BR13 635
CR21 114
DR21 114
ER23 607
FR23 607

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]3[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]63[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]64[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]65[/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]74[/TD]

[TD="align: center"]8[/TD]

[TD="align: right"]75[/TD]

[TD="align: center"]9[/TD]

[TD="align: right"]80[/TD]

</tbody>
Payroll Register

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]E4[/TH]
[TD="align: left"]=IF($D4<='TAX Rates & Rebates'!$L$9,'TAX Rates & Rebates'!$N$9,IF($D4<'TAX Rates & Rebates'!$L$11,'TAX Rates & Rebates'!$N$10,'TAX Rates & Rebates'!$N$11))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



Excel 2010
LMN
Tax Rebate??
R13 635
R21 114
R23 607

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]8[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]64[/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"][/TD]

</tbody>
TAX Rates & Rebates
Thanks jtakw,

I appreciate your assistance a lot.

Regards,
Kyle
 
Upvote 0
jtakw, you are a LEGEND!!!!!

Your formula works FANTASTIC!!!!

THANK-YOU, THANK-YOU, THANK-YOU!!!

Regards,
Kyle
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top