Nesting Multiple Large IFAND Statements

Snake Eyes

Board Regular
Joined
Dec 14, 2010
Messages
103
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Greetings.
I can't seem to get these 3 nested IFAND statements into one large formula where if they are all False I can leave the cell blank or if any are true they show their respective value.

Excel Formula:
=IF(AND(I33<=0.05),IF(AND(P33>=0.301,P33<=0.501),IF(AND(Z33>=0,Z33<=15),IF(AND(Q33>=-0.1,Q33<=0.06),IF(AND(J33<0.25),"Recommend",IF(AND(I38>=0,I38<=0.255),IF(AND(P38>=0.301,P38<=0.8),IF(AND(Z38>=0,Z38<=30),IF(AND(Q38>=-0.1,Q38<=0.06),IF(AND(J38>=-10,J38<=0.2549),"Consider",IF(AND(I38>=0.256,I38<=0.5),IF(AND(P38>=0.5,P38<=0.8),IF(AND(Z38>=30,Z38<=90),IF(AND(Q38>=-0.1,Q38<=0.06),IF(AND(J38>=0,J38<=0.75),"Monitor","")))))))))))))))
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
In the first part of the formula you are evaluating the cells in row 33:

IF(AND(I33<=0.05),IF(AND(P33>=0.301,P33<=0.501),IF(AND(Z33>=0,Z33<=15),IF(AND(Q33>=-0.1,Q33<=0.06),IF(AND(J33<0.25),"Recommend"

But in the next part of the formula you evaluate row 38, is that correct?

IF(AND(I38>=0,I38<=0.255),IF(AND(P38>=0.301,P38<=0.8),IF(AND(Z38>=0,Z38<=30),IF(AND(Q38>=-0.1,Q38<=0.06),IF(AND(J38>=-10,J38<=0.2549),"Consider" ...
 
Upvote 0
Hi DanteArmor,
Good catch. The answer is no, that is not correct. All references should be for the same row.
I can make the adjustment once I get my original question answered.
 
Upvote 0
Could you check the ranges? Some seem to have sequence and others do not make sense.
There are matches that could be in "Recommend" and also in "Consider", but since the first condition is met, then they will never appear as "Consider".

Check your ranks in the following table:

varios 09nov2022.xlsm
ABCD
7RecommendI<=0.05
8P>=0.301<=0.501
9Z>=0<=15
10Q>=-0.1<=0.06
11J<=0.25
12
13ConsiderI>=0<=0.255
14P>=0.301<=0.8
15Z>=0<=30
16Q>=-0.1<=0.06
17J>=-10<=0.2549
18
19MonitorI>=0.256<=0.5
20P>=0.5<=0.8
21Z>=30<=90
22Q>=-0.1<=0.06
23J>=0<=0.75
Hoja4


Or if you already have a table with values, it would be more practical to review it in a table than in a formula.
 
Upvote 0
True,
Some of the ranges include values that fall within other groups. That’s done intentionally.

The 3 groups should be designed to return the True value only if ALL the conditions within the group are met.
 
Upvote 0
Try:

Dante Amor
EIJPQZ
33Monitor0.260.240.60.0231
34Recommend0.040.240.3020.021
35Consider0.240.240.3020.021
36None0.260.240.60.021
Hoja4
Cell Formulas
RangeFormula
E33:E36E33=IF(AND(I33<=0.05,P33>=0.301,P33<=0.501,Z33>=0,Z33<=15,Q33>=-0.1,Q33<=0.06,J33<=0.25),"Recommend", IF(AND(I33>=0,I33<=0.255,P33>=0.301,P33<=0.8,Z33>=0,Z33<=30,Q33>=-0.1,Q33<=0.06,J33>=-10,J33<=0.2549),"Consider", IF(AND(I33>=0.256,I33<=0.5,P33>=0.5,P33<=0.8,Z33>=30,Z33<=90,Q33>=-0.1,Q33<=0.06,J33>=0,J33<=0.75),"Monitor","None")))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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