If, and, or conditions...

albertc30

Well-known Member
Joined
May 7, 2012
Messages
1,091
Office Version
  1. 2019
Platform
  1. Windows
Hi all.

This lats part of my formula is wrong somehow as it will not return the expect "not".

=IF(OR(A2>0,B2>0)*AND(D2=0),"No Inp.",IF(AND(A2=0,B2=0,OR(D2>0)),"No prod.",IF(OR(J2<=1%,J2>=-1%),"Yield Ok","not")))

In cell J2 my value is 4.76% as a result of formula "=100%-D2/I2".

According to my previous ifs formula I should now see being returned "not" correct?

What am I doing wrong here please anyone?

Many thanks.

Albert
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
What are the values of A2 B2 and D2 in that situation?

Could you supply a dummy spreadsheet?

UPDATE: I dont like that second condition OR(D2 > 0)

D2 > 0 OR....?
 
Upvote 0
It should return "Yield Ok" because the OR formula >=-1% will return a TRUE. You need to change that to an AND function.
 
Upvote 0
It should return "Yield Ok" because the OR formula >=-1% will return a TRUE. You need to change that to an AND function.

Hey New York, lovelly city.

You are correct.

I can now see the way of my errors.

Apologies to all for the late reply.

Many thanks for all the input. Much appreciated.

Regards,
Albert
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,645
Members
448,974
Latest member
DumbFinanceBro

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