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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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")
 
Upvote 0
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!
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,443
Members
448,898
Latest member
drewmorgan128

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