anthonyexcel
Active Member
- Joined
- Jun 10, 2011
- Messages
- 258
- Office Version
- 365
- Platform
- Windows
Good morning,
I need to count how many students have concecutive values {"F","D","D+","D-"} if the subject is ("ELA","Science","SS","Math"). I have a formula that I am using the problem is that if a row has one of the values in it but they are not consecutuve it will count it. Any help would be appreciated. Thanks!
I need to count how many students have concecutive values {"F","D","D+","D-"} if the subject is ("ELA","Science","SS","Math"). I have a formula that I am using the problem is that if a row has one of the values in it but they are not consecutuve it will count it. Any help would be appreciated. Thanks!
VBA Code:
=SUMPRODUCT(--($A$2:$A$12=H2)*($B$2:$B$12={"ELA","Math","SS","Science"})*(MMULT(--ISNUMBER(MATCH($C$2:$F$12,{"D","D-","D+","F"},0)),{1;1;1;1})>1))
|