The SUMIF function
Adds only the numbers in sum_range whose matching cell in range meets the criteria, such as the total of all sales for one category.
Understanding The SUMIF function in VCE Spreadsheets, SQL & Visualisation
What it does: The criteria range holds the team names, the criteria is Red, and the sum range holds the points to add up. D2:D8 is checked for Sport, and the matching numbers in E2:E8 are added, so the two ranges do different jobs. SUMIF checks a condition before adding. SUM adds everything and has no criteria. The sum_range holds the numbers. Only the ones in the same rows as a match are added. The range with the category (sport) comes first. The numbers to add (points) come last. Counting matching rows is the job of COUNTIF. SUMIF adds up the values. Remember: where to look, what to look for, then what to add.
Common mistakes: The criteria is text, so it must be inside quotation marks. It should be =SUMIF(A2:A8,"Food",B2:B8). The range and sum_range are swapped. The criteria range (team colour, A2:A9) comes first and the values to add (points, B2:B9) come last.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 4–20) and word search (Modules 4–34).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
=SUMIF(range, criteria, sum_range)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →