Encrypting a letter with a Caesar formula in a spreadsheet
Shifts the capital letter in A2 forward by the key in locked cell $B$1, wrapping Z back to A, and returns the encrypted letter. Copy it across so each cell encrypts one letter.
Understanding Encrypting a letter with a Caesar formula in a spreadsheet in ACARA Digital Technologies Years 9–10
What it does: A has the code 65, so taking away 65 gives A = 0, B = 1 and so on, ready for the shift to be added. MOD gives the remainder after dividing by 26, so any position past 25 loops round to the start of the alphabet. $B$1 is locked, so the key cell stays the same when the formula is copied. Without the dollar signs, the reference moves to C1, D1 and so on, and the key is lost. The alphabet has 26 letters. MOD keeps the result between 0 and 25, so with a key of 3, Y (24) becomes 27 MOD 26 = 1, which is B.
Common mistakes: The alphabet has 26 letters, so MOD must divide by 26 to wrap Z back to A. Using 25 gives the wrong letters. It should be 26)+65). CHAR turns a number into a letter, but A2 holds a letter, so CODE is needed to get its number first. It should be C2: =CODE(A2)-65.
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
=CHAR(MOD(CODE(A2)-65+$B$1,26)+65)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →