Multiple conditions

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
150
Office Version
  1. 2013
Platform
  1. Windows
Please help me with this. thanks in Advance

If Cell O2 is MBA ( It is in a drop down list )
then check the values of Cells Q2 to V2, if all of them are YES ( the drop down list has only 2 options YES or NO ) then it should display in cell D2 "admitted" or else "not admitted" ( even if the cells Q2 to V2 is all or any blank )

If Cell O2 is anything other than MBA ( It is in a drop down list )
then it should check the values of Cells Q2 to U2 only, if all of them are YES ( the drop down list has only 2 options YES or NO ) then it should display in cell D2 "admitted" or else "not admitted" ( even if the cells Q2 to U2 is all or any blank )
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try

Code:
=IF(AND(O2="MBA",COUNTIF(Q2:V2,"YES")=6),"admitted","not admitted")

or

Code:
=IF(COUNTIF(Q2:V2,"YES")=6),"admitted","not admitted")
 
Last edited:
Upvote 0
If Cell O2 is anything other than MBA ( It is in a drop down list )
then it should check the values of Cells Q2 to U2 only, if all of them are YES ( the drop down list has only 2 options YES or NO ) then it should display in cell D2 "admitted" or else "not admitted" ( even if the cells Q2 to U2 is all or any blank )

this part does not work

 
Upvote 0
=IF(AND(O2="MASTER OF BUSINESS ADMINISTRATION",COUNTIF(Q2:V2,"YES")=6),"admitted",IF(AND(O2<>"MASTER OF BUSINESS ADMINISTRATION",COUNTIF(Q2:U2,"YES")=5),"admitted","not admitted"))

changed to the above, now it works perfectly.

By the way I like your tag line The more I learn, the less I seem to know
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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