I am trying to find a percentage of a particular subgroup of pupils who have attained a 4, 5 or 6 on a each of three tests.
The formula I am using is as follows, where H, M and R are the columns containing the test results and C is the column identifying the pupils' 'attendance' in that particular subgroup:
=SUM(COUNTIFS($H$2:$H$33,{"4?","5?","6"},$M$2:$M$33,{"4?","5?","6"},$R$2:$R$33,{"4?","5?","6"},$C$2:$C$33,"S"))/SUM(COUNTIF($C$2:$C$33,"S"))
The problem I'm having is that the way this formula is written, it will only consider pupils who have attained the same score on each test, i.e., either 444, 555 or 666. I want it to consider pupils who have attained any combination of a 4, 5 or 6, i.e., 444, 445, 446, etc.
Could anyone help me tweak this formula, please? I know it's not particularly elegant and am open to other suggestions!
Thank you!
Bookmarks