Nested If statements

mikekoda

New Member
Joined
May 26, 2015
Messages
8
Can someone help me please.

I want to know how I can make an if then statement for employee pay. I have seven different levels of pay. B, C, D, etc.
Under each level of pay are different rates. If level B compensated employees make less than 75 units then they should be paid $8 per unit. But if they make between 75 and 90 units they should be paid at a rate of $8.50 and so on.

Please assist!

UNITS<75
75
90104115
B $ 8.00 $ 8.50 $ 8.75 $ 9.00 $ 9.50
C $ 8.50 $ 9.00 $ 9.25 $ 9.50 $ 10.00
D $ 8.75 $ 9.25 $ 9.50 $ 9.75 $ 10.50
E $ 9.00 $ 9.50 $ 9.75 $ 10.00 $ 11.00
F $ 9.25 $ 9.75 $ 10.00 $ 10.25 $ 11.25
G $ 9.50 $ 10.00 $ 10.25 $ 10.50 $ 11.50
H $ 9.75 $ 10.25 $ 10.50 $ 10.75 $ 11.75

<colgroup><col><col><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Good afternoon,

I would setup a LOOKUP table and then use a formula to lookup that table and return the correct hourly rate.

I hope this hels.
 
Upvote 0
Why "nested IF-statements"? I think you just want to lookup a value in a matrix, based on 2 criteria: level and quantity.
First replace "<75" by 0, so all column headers are numeric.

Assuming data in A1:F8, try something like:
Code:
=INDEX($B$2:$F$8,MATCH(level,$A$2:$A$8,0),match(quantity,$B$1:$F$1))
replacing "level" and "quantity" with their respective cell references.
 
Upvote 0

Book1
ABCDEF
1UNITS<757590104115
2B$ 8.00$ 8.50$ 8.75$ 9.00$ 9.50
3C$ 8.50$ 9.00$ 9.25$ 9.50$ 10.00
4D$ 8.75$ 9.25$ 9.50$ 9.75$ 10.50
5E$ 9.00$ 9.50$ 9.75$ 10.00$ 11.00
6F$ 9.25$ 9.75$ 10.00$ 10.25$ 11.25
7G$ 9.50$ 10.00$ 10.25$ 10.50$ 11.50
8H$ 9.75$ 10.25$ 10.50$ 10.75$ 11.75
9
10
11D92$ 9.50
Blad4
Cell Formulas
RangeFormula
C11=INDEX($A$1:$F$8,MATCH(A11,$A$1:$A$8,0),MATCH(B11,$A$1:$F$1,1))
 
Upvote 0

Book1
ABCDEF
1UNITS07590104115
2B$ 8.00$ 8.50$ 8.75$ 9.00$ 9.50
3C$ 8.50$ 9.00$ 9.25$ 9.50$ 10.00
4D$ 8.75$ 9.25$ 9.50$ 9.75$ 10.50
5E$ 9.00$ 9.50$ 9.75$ 10.00$ 11.00
6F$ 9.25$ 9.75$ 10.00$ 10.25$ 11.25
7G$ 9.50$ 10.00$ 10.25$ 10.50$ 11.50
8H$ 9.75$ 10.25$ 10.50$ 10.75$ 11.75
9
10
11D40$ 8.75
Blad4
Cell Formulas
RangeFormula
C11=INDEX($A$1:$F$8,MATCH(A11,$A$1:$A$8,0),MATCH(B11,$A$1:$F$1,1))
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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