Nested statements with IF, AND, OR

Pika735

New Member
Joined
Sep 14, 2020
Messages
15
Office Version
  1. 2019
Platform
  1. MacOS
  2. Web
BC>10 OR CB<10% OF TS) TRUE "Pass"
BC>10 OR CB<10% OF TS) FALSE "Fail"
BC<10 OR CB>10% OF TS) FALSE "Pass"
BC<10 OR CB>10% OF TS) TRUE "Fail"

Trying to get a nested IF (AND (Or statement to work, and I keep getting errors. I also tried IFS, with the same result
These are formaulas I need to combine into one.
IF((A3/C3)<10%,AND(D3="True","Pass", "Fail")
IF(B3>10,AND( D3="True", "Pass", "Fail")
IF((A3/C3)>10%,AND(D3="True","fail", "Pass")
IF(B3<10, AND (D3="TRUE", Fail", "Pass")
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
The first four lines of your post don't make any sense.

I see what you are trying to do with your other four formulas but the syntax is wrong.

You also have a logic problem if you want these all to be combined into one formula. You have contradictory conditions. You first have to work out the logic you want before we can address what formulas will implement that logic.

What result do you want if:

A3/C3<10% AND B3<10 AND D3=True
The first formula says this should be Pass but the fourth formula says this should be Fail.

A3/C3>10% AND B3>10 AND D3=True
The second formula says this should be Pass but the third formula says this should be Fail.

What do you want to happen if A3/C3 = 10%? What if B3=10?
 
Upvote 0
The first four lines of your post don't make any sense.

I see what you are trying to do with your other four formulas but the syntax is wrong.

You also have a logic problem if you want these all to be combined into one formula. You have contradictory conditions. You first have to work out the logic you want before we can address what formulas will implement that logic.

What result do you want if:

A3/C3<10% AND B3<10 AND D3=True
The first formula says this should be Pass but the fourth formula says this should be Fail.

A3/C3>10% AND B3>10 AND D3=True
The second formula says this should be Pass but the third formula says this should be Fail.

What do you want to happen if A3/C3 = 10%? What if B3=10?
so the above lines are the criteria, so here is the explaination break down:

BC>10 OR CB<10% OF TS) AND $A3 =TRUE then "Pass"
BC>10 OR CB<10% OF TS) AND $A3 =FALSE then "Fail"
BC<10 OR CB>10% OF TS) AND $A3= FALSE then "Pass"
BC<10 OR CB>10% OF TS) AND $A3 =TRUE then "Fail"

BC is the column numeric value
CB is the column numeric value that would be expressed like =IF ((CB/TS)<10%, "Pass", "Fail")
 
Upvote 0
These formulas have a right ) but no left (.
What are BC, CB, and TS? "Column numeric value" does not not mean anything if we don't know what cell you are talking about.
These formulas do not seem to have anything to do with the other formulas you showed.
 
Upvote 0
These formulas have a right ) but no left (.
What are BC, CB, and TS? "Column numeric value" does not not mean anything if we don't know what cell you are talking about.
These formulas do not seem to have anything to do with the other formulas you showed.
here is better version
CB BCTSAccount state Decision
300151500TRUEPass
300151500FALSEFail
30051500TRUEFail
30051500FALSEPass
10051500TRUEPass
10051500FALSEFail
100151500TRUEPass
100151500FALSEFail
Account state
BC>10 OR CB<10% OF TS)TRUE"Pass"
BC>10 OR CB<10% OF TS)FALSE"Fail"
BC<10 OR CB>10% OF TS)FALSE"Pass"
BC<10 OR CB>10% OF TS)TRUE"Fail"

IF(AND(OR ((CB/TS)<10%, AS="TRUE", BC>10, AS="TRUE", "Pass","FAIL"))
 
Upvote 0
Your conditions are contradictory

ConditionsAccount stateResult
BC>10 OR CB<10% OF TS)TRUE"Pass"
BC>10 OR CB<10% OF TS)FALSE"Fail"
BC<10 OR CB>10% OF TS)FALSE"Pass"
BC<10 OR CB>10% OF TS)TRUE"Fail"

Suppose you have these three conditions:

BC>10, CB>10% of TS, Account state=TRUE

This set of conditions matches both of the highlighted conditions above. One is Pass and one is Fail. You can't have a set of conditions that is both Pass and Fail.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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