0% found this document useful (0 votes)
9 views1 page

Dec 2 Bin

This document contains a summary of the DEC2BIN Excel function: The DEC2BIN function converts a decimal number to its binary equivalent. It can only handle decimals between -512 and 511. The function will return an error if the decimal is outside this range. Optionally, the binary result can be padded with leading zeros by including a second argument specifying the number of places to pad.

Uploaded by

arunasagar_2011
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Dec 2 Bin

This document contains a summary of the DEC2BIN Excel function: The DEC2BIN function converts a decimal number to its binary equivalent. It can only handle decimals between -512 and 511. The function will return an error if the decimal is outside this range. Optionally, the binary result can be padded with leading zeros by including a second argument specifying the number of places to pad.

Uploaded by

arunasagar_2011
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Excel Function Dictionary

1998 - 2000 Peter Noneley


A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

DEC2BIN
Page 1 of 1

DEC2BIN
Decimal Number Binary Equivalent
0
0 =DEC2BIN(C4)
1
1 =DEC2BIN(C5)
2
10 =DEC2BIN(C6)
3
11 =DEC2BIN(C7)
511
111111111 =DEC2BIN(C8)
512
#NUM! =DEC2BIN(C9)
-1
1111111111 =DEC2BIN(C10)
-2
1111111110 =DEC2BIN(C11)
-3
1111111101 =DEC2BIN(C12)
-511
1000000001 =DEC2BIN(C13)
-512
1000000000 =DEC2BIN(C14)
Decimal Number
1
1
1
1
-1

Places To Pad
1
2
3
9
1

Binary Equivalent
1
01
001
000000001
1111111111

=DEC2BIN(C17,D17)
=DEC2BIN(C18,D18)
=DEC2BIN(C19,D19)
=DEC2BIN(C20,D20)
=DEC2BIN(C21,D21)

What Does It Do ?
This function converts a decimal number to its binary equivalent.
It can only cope with decimals ranging from -512 to 511.
The result can be padded with leading 0 zeros, although this is ignored for negatives.
Syntax
=DEC2BIN(DecimalNumber,PlacesToPad)
The PlacesToPad is optional.
Formatting
No special formatting is needed.

You might also like