moshin123

New Member
Joined
Jan 23, 2017
Messages
7
So i was given this question by my teacher and i solved it.

1. Copy the data onto a new worksheet.
2. It has been decided to offer a place if an applicant has a PASS in ANY THREE SUBJECTS for
the next academic year. Modify the formula to cater for the new rule.

HINT: There are 4 possibilities: (P,P,P,F), (F,P,P,P), (P, F,P,P) and (P,P,F,P). You will need to
Use both AND and OR Logical operators.
3. Change data for all possibilities and check each row’s outcome thoroughly


the solution is =IF(OR(AND(G33="Pass",H33="Pass",I33="Pass",J33="Pass"),AND(G33="Pass",H33="Pass",I33="Pass",J33="Fail"),AND(G33="Fail",H33="Pass",I33="Pass",J33="Pass"),AND(G33="Pass",H33="Fail",I33="Pass",J33="Pass"),AND(G33="Pass",H33="Pass",I33="Fail",J33="Pass")), "Yes","No")

however, the question is how would i make this shorter
and can u explain why it works
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Last edited:
Upvote 0
Do you have to use AND and OR operators? If not, you can simplify the formula to

=IF(COUNTIF(G33:J33,"Pass")>=3,"Yes","No")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,428
Messages
6,124,832
Members
449,190
Latest member
rscraig11

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