if, or, and-formula issue

Swifty87

New Member
Joined
Oct 23, 2019
Messages
18
Hey All,

I am scratching my head trying to figure out where i am going wrong, looking for a cell to return '1' or '0' based if certain combinations of Yes/No and Blank cells are selected for the logic.

Formula i have now is below, but this issue seems to be that it is not working for the if cell is blank '="<>"&"*"'

=IF(OR(AND(C4="No",C5="yes"),AND(C4="No",C5="No"),AND(Steps!$C$4="<>"&"*",C5="No"),AND(Steps!$C$4="No",C5="<>"&"*"),AND(Steps!$C$4="<>"&"*",C5="<>"&"*")),"1","0")

combinations for returning '1' are:
C4="No"
C5="No"
or
C4="No"
C5="Yes"
or
C4= Empty Cell
C5= Empty Cell
or
C4= Empty Cell
C5= "Yes"

combinations for returning '0' are:
C4="Yes"
C5="No"
or
C4= "Yes"
C5= Empty Cell

Any help would be greatly appreciated.

Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
There are two situations that haven't been defined. What result do you want if
c4="No" C5 is empty
c4 is empty, C5 = "No"


So far, with the conditions listed in post 1

=1-(C4="Yes")

would do what you want.
 
Last edited:
Upvote 0
There are two situations that haven't been defined. What result do you want if
c4="No" C5 is empty
c4 is empty, C5 = "No"


So far, with the conditions listed in post 1

=1-(C4="Yes")

would do what you want.

Thanks for your reply Mike,

My god i have been way over complicating things!! What you have given me works perfect.

if c4="No" C5 is empty, and c4 is empty, C5 = "No" I would want it to return "1", this does this.

Thank you Mike, if you don't mind for my benefit any chance you can quickly run through how this works for my understanding?

Once again thanks for the help
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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