在Excel工作表中存放了第一中学和第二中学所有班级总计300个学生的考试成绩,A列到D列分别对应"学校"、"班级"、"学号"、"成绩",利用公式计算第一中学3班的半均分,最优的操作方法是:
A. .=SUMIFS(D2:D301,A2:A301,"第一中学",B2:B301,"3班")/COUNTIFS(A2:A301,"第一中学",B2:B301,"3班")
B. =SUMIFS(D2:D301,B2:B301,"3班")/COUNTIFS(B2:B301,"3")
C. =AVERAGEIFS(D2:D301,A2:A301,"第一中学",B2:B301,"3班")
D. =AVERAGEIF(D2:D301,A2:A301, "第一中学",B2:B301,"3班")