Summary

The Excel DEC2BIN function converts a decimal number to its binary equivalent.

Purpose 

Converts a decimal number to binary

Return value 

Binary number

Syntax

=DEC2BIN(number,[places])
  • number - The decimal number you want to convert to binary.
  • places - [optional] Pads the resulting binary number with zeros up to the specified number of digits. If omitted returns the least number of characters required to represent the number.

How to use 

The input must be a valid number within the range [ -512, 511 ].

Errors

DEC2BIN error examples
Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.