The DEC2BIN spreadsheet function
A spreadsheet function that converts a decimal whole number into binary text. =DEC2BIN(13) gives 1101. Add places to pad with zeros, e.g. =DEC2BIN(5,8) gives 00000101.
Understanding The DEC2BIN spreadsheet function in ACARA Digital Technologies Years 7–8
What it does: DEC2BIN can take a cell reference instead of a typed number, so it converts whatever number is in A2. Copying the formula down changes A2 to A3, A4 and so on, so each row's number is converted to binary. DEC2BIN turns a decimal number into binary. BIN2DEC does the opposite and turns binary into decimal. 13 = 8 + 4 + 1, so the place values 8, 4 and 1 are on and the 2 is off. That gives 1101. The second number (8) is the places argument. It pads the answer with leading zeros to 8 digits, so 101 becomes 00000101.
Common mistakes: The function is called DEC2BIN, not DEC2BINARY. A spreadsheet gives an error for a name it does not know. It should be =DEC2BIN(A2). A spreadsheet formula must start with =. Without it the cell just shows the text DEC2BIN(13). It should be =DEC2BIN(13).
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 189–203) and word search (Modules 189–236).
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
=DEC2BIN(13)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →