COUNTIF and SUMIF
COUNTIF counts the cells in a range that meet a condition. SUMIF works the same way but adds up the values that meet it. Example: count every 'Yes' in C2:C50.
Understanding COUNTIF and SUMIF in Years 9–10 Data & Information
What it does: A number condition such as ">10" goes in quote marks and COUNTIF counts the cells that meet it. The condition is tested on A2:A20 and the sum range C2:C20 holds the values that get added. The third argument is the sum range. Without C2:C20, SUMIF would try to add up the cells in B2:B20, which hold text, not prices. The first range (A2:A50) is where Excel checks the condition. The last range (D2:D50) is the sum range holding the numbers to add. Text conditions need quotation marks around them. Without quotes, the spreadsheet thinks Yes is a name and gives an error.
Common mistakes: Text conditions in COUNTIF must be inside double quotes. It should be =COUNTIF(C2:C50,"Yes"). COUNT only counts numbers and does not take a condition. To count cells above 10 you need COUNTIF: =COUNTIF(D2:D50,">10").
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 17–51) and word search (Modules 6–132).
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
=COUNTIF(C2:C50,"Yes")Fill in the Blanks
Spot the Error
Student with a class code? Join your class →