Tables & if greater than / less than formulas

atran008

New Member
Joined
Jan 28, 2019
Messages
1
Hi all,

I manage a team of payroll with different salaries. I am looking for a solution where I can input the salary figure in a cell which it is matched against the conditions in the table below to output the correct Levy amount.

Does anybody know of an efficient way to do this? Perhaps organise the table differently in excel? Thanks in advance.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Salary[/TD]
[TD]Levy[/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<colgroup><col></colgroup><tbody>[TR]
[TD] ≤ 2,000[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][TABLE="width: 93"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]$0.5[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<colgroup><col></colgroup><tbody>[TR]
[TD] > 2,000 to 3,500[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][TABLE="width: 93"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]$1[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<colgroup><col></colgroup><tbody>[TR]
[TD] > 3,500 to 5,000[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][TABLE="width: 93"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]$1.5[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<colgroup><col></colgroup><tbody>[TR]
[TD] > 5,000 to 7,500[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][TABLE="width: 93"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]$2[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<colgroup><col></colgroup><tbody>[TR]
[TD] > 7,500[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][TABLE="width: 93"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]$3[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Put your Salary in Column A. In Column B write down this formula:

=IF(A1<=2000,0.5,IF(A1<=3500,1,IF(A1<=5000,1.5,IF(A1<=7500,2,3))))
It would give you the desired Levy in column B. In case Levy is variable, you can link a cell instead of giving a constant in formula.

Is it efficient way of doing it ? I don't know... Does it solve your problem ? Well, Yes...
 
Upvote 0
Hi,

Set up your Table like my sample A2:B6, then whenever there's a change, just change them within the table:


Book1
ABCDE
1SalaryLevyEmployee SalaryLevy to apply
200.5010000.5
320011.0020000.5
435011.5020501
550012.0035001
675013.0035101.5
750001.5
860002
975002
1090003
Sheet516
Cell Formulas
RangeFormula
E2=LOOKUP(D2,A$2:A$6,B$2:B$6)
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,713
Members
452,667
Latest member
vanessavalentino83

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