Intermediate5 minFree practice

Average scores for one department

Calculate a mean using only matching rows.

Practice library
Read the taskTry your answerLearn from feedback

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.

Answer cell: G2Start your formula with = and use the source cells.
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.

Get the full practice workbook
AVERAGEIF practiceDataset original
ABCDEFG
1StudentDepartmentQuiz scoreYour answer
2AnanyaCommerce80
3ArjunScience60
4MeeraCommerce70
5KabirArts90
6DiyaCommerce90
7RohanScience75
Practice dataAll data is fictional
Ready when you are.
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.

KEEP YOUR MOMENTUM

One more small step?

Try MEDIAN practiceBrowse all challenges

YOUR LEARNING JOURNEY

Look how far you’ve come.

Your progress is saved in this browser. Clearing browser data removes it.

Manage saved progress

This removes your completed-challenge history from this browser.