Logical expression for excel..

81shelly

New Member
Joined
Jul 25, 2007
Messages
24
How could you put this sequence in excel..

If A AND B are true return x if false return z

OR IF C>=D is true return y if false return z

Is it possible to put the whole thing on one formula?

Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Yes, but I think we'd need to understand the logic better.

How do you define that A and B are true ?

If they are both true, what if C>+D is also true ?

If the decision process is as follows, then you can write a formula for it -
If A AND B are both true, return X.
If A AND B are not both true, but C>+D is true, return Y.
Otherwise, return Z.

If this isn't the correct logic, you can still write a formula for it, but you'd need to be clear about what the logic is.
 
Upvote 0
Jonmo1 - I don't think your solution addresses the implied requirement from the OP to return z in any occurrence of A and B not being true.
 
Upvote 0
Sure it does. If Either A or B is False, it moves on to the next IF, If C>=D - if that is not true, it returns "z"
 
Upvote 0
jonmo1 - it's clearly what 81shelly wanted, but it's not what he said he wanted in the OP, which says
If A AND B are true return x if false return z

Anyway well done for correctly interpreting their request !
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,580
Members
449,039
Latest member
Arbind kumar

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