Excel IF AND functions

bruce21

New Member
Joined
Oct 25, 2018
Messages
13
Hello,

I have 3 conditions:

If a=no, b=no, c=yes then I want d to show ""
If a=no, b=no, c=no, then I want d to show "inop"
If a=no, b=no, c="", then I want d to show "inop"

If can write IF And statement for the first 2 conditions but I am having problems try to add the last condition to the formula. Any ideas?

[TABLE="width: 241"]
<colgroup><col><col span="3"></colgroup><tbody>[TR]
[TD="align: left"]a[/TD]
[TD="align: left"]b[/TD]
[TD="align: left"]c[/TD]
[TD="align: left"]d[/TD]
[/TR]
[TR]
[TD="align: left"]no[/TD]
[TD="align: left"]no[/TD]
[TD="align: left"]yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]no[/TD]
[TD="align: left"]no[/TD]
[TD="align: left"]no[/TD]
[TD="align: left"]inop[/TD]
[/TR]
[TR]
[TD="align: left"]no[/TD]
[TD="align: left"]no[/TD]
[TD][/TD]
[TD="align: left"]inop[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Perhaps something like this:

=IF(AND(A1="no",B1="no",C1="yes"),"",IF(OR(AND(A1="no",B1="no",C1=""),AND(A1="no",B1="no",C1="no")),"inop",""))
 
Upvote 0
I have 3 conditions:

If a=no, b=no, c=yes then I want d to show ""
If a=no, b=no, c=no, then I want d to show "inop"
If a=no, b=no, c="", then I want d to show "inop"
If those really are the only three possibilities that you may have, you could use this simple formula:
Code:
=IF(C1="yes","","inop")
 
Upvote 0
Can C be anything other than yes no or empty, if not then the formula can be simplified further
 
Upvote 0
Ah joe you beat me to it
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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