If based on multiple criteria and one OR

lozzeroooni

New Member
Joined
Feb 20, 2020
Messages
12
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi there,

I'm using the following formula to provide a yes/no if all of those cells are filled in.

=IF((AND(I4>0,J4>0,L4>0,M4>0,T4>0,U4>0,V4>0,W4>0,Z4>0,AA4>0,AB4>0,AC4>0,AD4>0,AE4>0,AF4>0,AG4>0,AH4>0,AI4>0,AJ4>0,AK4>0,AL4>0,AM4>0,AN4>0,BH4>0,BU4>0)), "Yes", "No")

I'd like to change it slightly though, so it's all of the above but one of either L4 or M4 can be filled in but the rest of the cells have to be. I really can't work out how to do so though.

Any help would be greatly appreciated!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
14,515
Office Version
  1. 365
Platform
  1. Windows
Like this

=IF((AND(I4>0,J4>0,OR(L4>0,M4>0),T4>0,U4>0,V4>0,W4>0,Z4>0,AA4>0,AB4>0,AC4>0,AD4>0,AE4>0,AF4>0,AG4>0,AH4>0,AI4>0,AJ4>0,AK4>0,AL4>0,AM4>0,AN4>0,BH4>0,BU4>0)), "Yes", "No")
 

lozzeroooni

New Member
Joined
Feb 20, 2020
Messages
12
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Like this

=IF((AND(I4>0,J4>0,OR(L4>0,M4>0),T4>0,U4>0,V4>0,W4>0,Z4>0,AA4>0,AB4>0,AC4>0,AD4>0,AE4>0,AF4>0,AG4>0,AH4>0,AI4>0,AJ4>0,AK4>0,AL4>0,AM4>0,AN4>0,BH4>0,BU4>0)), "Yes", "No")
Like this

=IF((AND(I4>0,J4>0,OR(L4>0,M4>0),T4>0,U4>0,V4>0,W4>0,Z4>0,AA4>0,AB4>0,AC4>0,AD4>0,AE4>0,AF4>0,AG4>0,AH4>0,AI4>0,AJ4>0,AK4>0,AL4>0,AM4>0,AN4>0,BH4>0,BU4>0)), "Yes", "No")


Thanks Jason!
 

Forum statistics

Threads
1,147,743
Messages
5,742,943
Members
423,765
Latest member
PaulD1984

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
Top