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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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