Nested IF(AND Statement - Index Match or Array?

AP1927

New Member
Joined
Nov 28, 2014
Messages
13
Hi,

I am trying to work out who in my data is eligible for a pay increment. I have a 2 column lookup table $A$2:$B$28 that shows Grade in Column A and Scale Point Ceiling in Column B
e.g.
Column A
GRADE

Column B
SCALE POINT CEILING
Administrator 10

I have thousands of employees and so doing individual IF & AND statements will take forever.

The IF Statement in my employee worksheet current works and is:

=IF(AND(I3<10,H3="Administrator"),"Due","Not Due")

So, if I3 is below 10 Scale Point then "Due" otherwise "Not Due".

I have thousands of people 20 plus grades, what is the best way to calculate this? I want to use my lookup table array $A$2:$B$28 on the other
worksheet as an IF & AND Array formula?

Any help will be much appreciated.

Andy
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
you can use your lookup table like this


Book1
ABCDEF
1GRADESCALE POINT CEILINGGRADEPoints
2G110G213Not Due
3G215G430Due
4G320
5G425
6G530
7G635
8G740
9G845
10G950
11G1055
12G1160
13G1265
14G1370
15G1475
16G1580
17G1685
18G1790
19G1895
20G19100
21G20105
22G21110
23G22115
24G23120
25G24125
26G25130
27G26135
28G27140
Sheet1
Cell Formulas
RangeFormula
F2=IF(VLOOKUP(D2,$A$2:$B$28,2,0))
 
Upvote 0
Nevermind! Someone beat me to the response. I like the proposed solution a lot.
 
Last edited:
Upvote 0
Thanks for this, I had to actually tweak the formula because some ceiling points are higher than whats in the lookup table.
The formula works and looks like this:

=IF(OR(VLOOKUP(H3,'Scale Points'!$A$2:$B$28,2,0)=I3,VLOOKUP(H3,'Scale Points'!$A$2:$B$28,2,0)<I3),"Not Due","Due")

Much appreciated AlanY!

you can use your lookup table like this

ABCDEF
1GRADESCALE POINT CEILINGGRADEPoints
2G110G213Not Due
3G215G430Due
4G320
5G425
6G530
7G635
8G740
9G845
10G950
11G1055
12G1160
13G1265
14G1370
15G1475
16G1580
17G1685
18G1790
19G1895
20G19100
21G20105
22G21110
23G22115
24G23120
25G24125
26G25130
27G26135
28G27140

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F2=IF(VLOOKUP(D2,$A$2:$B$28,2,0)<E2,"Due","Not Due")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,423
Messages
6,119,398
Members
448,892
Latest member
amjad24

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