# IF AND Statement partially matching criteria

#### sjurawan

##### New Member
Hi,

I currently have the formula below looking a set of data comprised of people and percentages. The formula currently looks at if a person is in the bottom 20% and are below the target (0.815). From this it produces either a 3 if they are both below target and in the bottom 20% or a 0 if they are not in the bottom 20%, what I need to do is have the formula produce a 2 if the person is under the target (0.815) but is not in the bottom 20%. Any help is really appreciated! Thank you!

=IFERROR(IF(AND(VLOOKUP(\$A4,INDIRECT("'"&C\$3&"'!\$B:\$C"),2,FALSE)<percentile.inc(indirect("'"&c\$3&"'!\$c\$2:\$c\$600"),0.2),vlookup(\$a4,indirect("'"&c\$3&"'!\$b:\$c"),2,false)<0.815),"3","0"),"1")*1

Kind Regards
Sam</percentile.inc(indirect("'"&c\$3&"'!\$c\$2:\$c\$600"),0.2),vlookup(\$a4,indirect("'"&c\$3&"'!\$b:\$c"),2,false)<0.815),"3","0"),"1")*1

### Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

#### etaf

##### Well-known Member
how do you know if bottom 20% and how do you know target actuals

where are the ranges

IF( AND(cell range < = 20% , cell range < 0.815) , 3 , if( AND(cell range > 20% , cell range < 0.815) , 0,

however,

bottom 20% and are below the target (0.815). = 3
above 20% and are below the target (0.815). = 2
what are the rules for 0

any rules for a 1

Replies
2
Views
71
Replies
3
Views
244
Replies
7
Views
442
Replies
8
Views
80
Replies
1
Views
119

1,129,358
Messages
5,635,800
Members
416,883
Latest member
jwchase

### 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.

### Which adblocker are you using?

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

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