Forum Discussion
colee365
Jun 14, 2023Copper Contributor
+/- Student Grade Formula Question
Good afternoon, I work in a secondary school and we use the following grades: 1-, 1, 1+, 2-, 2, 2+, etc. I need to calculate the number of students that got a 1- etc in each subject. Obviously the +...
PeterBartholomew1
Jun 14, 2023Silver Contributor
This is intended as a dynamic range version of a crosstab count.
= LET(
distinctName, SORT(UNIQUE(Name)),
gradeList, TOROW(gradeValidation),
countGrades, COUNTIFS(Name, distinctName, Grade, gradeList),
crossTab, IF(countGrades, countGrades, ""),
VSTACK(
HSTACK("Count", gradeList),
HSTACK(distinctName, crossTab)
)
)