The MOD function in a spreadsheet
Returns the remainder after division, so numbers wrap around. =MOD(27,26) gives 1, which is how a Caesar shift loops from Z back to A.
Understanding The MOD function in a spreadsheet in ACARA Digital Technologies Years 9–10
What it does: Adding the shift can push the position past 25. Using MOD with 26 wraps it back to the start of the alphabet. Subtracting can give a negative number. MOD with 26 turns it into a position from 0 to 25. The number being wrapped goes first and the divisor (26 letters) goes second. =MOD(26,27) just returns 26. 10 divided by 3 is 3 remainder 1. MOD returns the remainder, not the whole-number answer. 25 + 3 = 28, and MOD(28,26) = 2. Position 2 is C, so Z wraps around to C. 26 divides into 26 exactly once with nothing left over, so the remainder is 0.
Common mistakes: The arguments are the wrong way round. MOD takes the number first and the divisor second. C2 is 28, so =MOD(C2,26) gives 2 and Z wraps round to C. The spreadsheet function is called MOD, not MODULO. MODULO gives a #NAME? error. It should be =MOD(A1,26).
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 860–875) and word search (Modules 860–944).
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
=MOD(number, divisor)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →