Reputation: 87
I have a excel sheet like :
Sr.no___RollNumber__Subject1__Subject2__Subject3
1.-------------001-------------Pass----------Pass------Pass
2.-------------002-------------NULL----------Pass------Pass
3.-------------003-------------Pass----------Fail------NULL
4.-------------004-------------Fail----------Pass------NULL
*NULL Means Blank Cells
I want to write a single excel formula to get the count of all the students who have passed in at least 2 of the 3 subjects.
Upvotes: 0
Views: 31265
Reputation: 152605
Use SUMPRODUCT:
=SUMPRODUCT(((C2:C5="Pass")+(D2:D5="Pass")+(E2:E5="Pass")>=2)*1)
Upvotes: 1