# Multiple Conditions ( AND & OR) in IF statement formula

#### krcraeanna

##### New Member
I have a question. Is it possible to combine multiple conditions ( AND & OR) in an IF statement in one formula?

Example:

=IF(AND(B3 > 0,C3 > 0,D3 >0,E3=0), D3, 0), IF(OR(C3 is NULL), D3, 0)

I want to say:

If (B3 > 0 and C3 > 0 and D3 >0 and E3=0) OR (C3 is NULL)
then
value of cell D3
else
0
end if.

I get a #NAME? error in the cell.

Thanks in advance for any ideas.

### Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try

=IF(OR(AND(B3 > 0,C3 > 0,D3 >0,E3=0),C3=""), D3, 0)

It worked wonderfully! I never thought of nesting the conditions that way, I tried every other combination. Thanks again for your help!!!

Perhaps:

=OR(AND(MAX(B3*C3*D3,0),E3=0),C3="")*D3

Re: Multiple Conditions ( AND & OR) in IF statement form

I have a question. Is it possible to combine multiple conditions ( AND & OR) in an IF statement in one formula?

Example:

=IF(AND(B3 > 0,C3 > 0,D3 >0,E3=0), D3, 0), IF(OR(C3 is NULL), D3, 0)

I want to say:

If (B3 > 0 and C3 > 0 and D3 >0 and E3=0) OR (C3 is NULL)
then
value of cell D3
else
0
end if.

I get a #NAME? error in the cell.

Thanks in advance for any ideas.

If B3:E3 can only house numbers or empty cells (thus no text including "")...

=IF(OR(AND(B3 > 0, C3 > 0, D3 > 0, AND(ISNUMBER(E3), E3 = 0)), C3=0), D3, 0)

Replies
3
Views
235
Replies
1
Views
171
Replies
2
Views
175
Replies
4
Views
220
Replies
5
Views
207

1,217,316
Messages
6,135,811
Members
449,965
Latest member
Ckl43

### 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.

### Which adblocker are you using?

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

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