Problem combining not equal to and OR formula

Keith_Excel

New Member
Joined
Feb 19, 2014
Messages
8
I'm trying to write a nested IF formula that the first argument looks at a particular cell and is supposed to find any value other than Yes or Discontinued. I've put in my logical test =if(or(A1<>"Yes",A1<>"Discontinued"),True Statement,Further IF Formulas).

On the cells that contain Yes or Discontinued the formula is not returning the false criteria and instead returning the true answer. If I remove the OR statement and just have either the <>"Yes" or <>"Discontinued" the formula works and returns the false answer.

Does anyone know why OR Formula does not work with not equal to conditions?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
OR ()

Returns TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.

You want AND()

Returns TRUE if all its arguments evaluate to TRUE; returns FALSE if one or more arguments evaluate to FALSE.

So

With A1 being "Discontinued"
=if(or(A1<>"Yes",A1<>"Discontinued") Will return {TRUE, FALSE} therefore, TRUE
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,096
Members
452,542
Latest member
Bricklin

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