Multiple AND Conditions Inside an OR Statement

RobertN

New Member
Joined
Jan 10, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I am trying to add multiple conditions to one side of an OR statement. Essentially, I am attempting to nest an AND statement in an OR statement in an IF statement.

Here is a simple example of what I am trying to accomplish:

If A1 is blank (regardless of any other conditions) display “good” otherwise display “error”

OR

If A2=1, A3=2, and A4=3 (regardless of whether there is or is not a value in A1), display “good” otherwise display “error”

Here is a sample of the formula I wrote which is not working:

=IF(OR(A1=””),(AND(A2=1,A3=3,A4=3)),”good”,”error”)
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Your post is a bit confusing, but perhaps this is what you are looking for?
=IF(OR(A1="",AND(A2=1,A3=2,A4=3)),"good","error")
 
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,787
Members
449,049
Latest member
greyangel23

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