Average scores for one department
Calculate a mean using only matching rows.
YOUR TASK
Put AVERAGEIF to work.
Departments are in B2:B7 and quiz scores in C2:C7. In G2, calculate the average score for Commerce students only. There is at least one Commerce student in every dataset.
Give me a hint
AVERAGEIF takes the criteria range, the criterion and the range to average.
Show the worked solution
=AVERAGEIF(B2:B7,"Commerce",C2:C7)Only the Commerce scores contribute to the total and the count used for the average. An ordinary AVERAGE would include every department.
Try it yourself before opening the solution. A completed task with the solution open is saved as reviewed practice.
What can I use in this checker?
SUM, SUMPRODUCT (matching range dimensions), INDEX (single-cell result), MATCH (exact match with 0), AVERAGE, AVERAGEIF, MEDIAN, MIN, MAX, COUNT, COUNTA, IF, IFERROR, AND, OR, SUMIF, SUMIFS, COUNTIF, COUNTIFS, exact-match VLOOKUP and XLOOKUP, ROUND, LEFT, RIGHT, LEN, TRIM, UPPER, LOWER, CONCAT, arithmetic, comparisons, percentages and absolute cell references. Use the displayed data and double quotes for text. For AND and OR, use comparisons or logical values. Text-cleaning tasks check letter case. This is a focused formula checker; it does not include Excel’s full feature set.
