Creating ID codes with a formula
Builds a unique ID code like P01 for each row. Copy it down, paste as values only so the codes stay, then delete the name column.
Understanding Creating ID codes with a formula in ACARA Digital Technologies Years 7–8
What it does: The & symbol joins the text "P" to the formatted row number, so row 2 gives P01. TEXT with the format "00" adds a leading zero, so 5 becomes 05 and codes line up neatly. ROW() gives the row number. Data starts in row 2, so ROW()-1 gives 1, 2, 3 and so on, one for each person. Copying the formula down is quick. ROW() changes for each row, so each row gets its own unique code. Pasting as values only turns the formulas into plain text. Then the codes stay put and do not change or break when other data is changed or deleted.
Common mistakes: Text and numbers are joined with &, not +. Using + causes a #VALUE! error. It should be ="P"&TEXT(ROW()-1,"00"). The codes must be pasted as values only so they become fixed text. If they stay as formulas, they can change when rows are sorted or deleted. It should be 'Paste B2:B9 as values only'.
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 752–770) and word search (Modules 696–770).
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
="P"&TEXT(ROW()-1,"00")Fill in the Blanks
Spot the Error
Student with a class code? Join your class →