Grouping numbers into bins with COUNTIFS
Counts the numbers in a range that are at least the lower limit and less than the upper limit, giving the frequency of one bin. Equal-width bins must not leave gaps or overlap.
Understanding Grouping numbers into bins with COUNTIFS in VCE Spreadsheets, SQL & Visualisation
What it does: The >= includes 20 in this bin, and the < in the previous bin (<20) leaves it out. That stops overlaps and gaps. One COUNTIFS formula per bin gives that bin's frequency. This one counts values from 0 up to but not including 10. COUNTIFS needs the range repeated for each condition: range, criterion, range, criterion. Each bin is 10 wide, and for whole numbers 9 is followed straight away by 10, so there is no gap and no overlap. Using <= in one bin and >= in the next counts 20 twice. Use "<20" for the upper limit and ">=20" for the next lower limit.
Common mistakes: The upper limit uses <=5, so a score of 5 is counted in this bin and again in the next bin (>=5). Bins must not overlap. It should be "<5". The lower limit ">5" leaves out a score of exactly 5. The previous bin stops below 5, so 5 falls into a gap. It should be ">=5".
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 21–34) 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
=COUNTIFS(B2:B30,">=10",B2:B30,"<20")Fill in the Blanks
Spot the Error
Student with a class code? Join your class →