IF AND Statement partially matching criteria

sjurawan

New Member
Joined
Nov 2, 2017
Messages
3
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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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

 
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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