How do I convert a binary number to decimal in Google Sheets?

How do I convert a binary number to decimal in Google Sheets?

Converting a binary number to decimal in Google Sheets can be achieved by using the BIN2DEC function. This function takes a binary number as an input and returns its equivalent decimal value. It is important to note that the binary number must be entered as a string of 0s and 1s in order for the function to work correctly. Once the function is applied to the cell containing the binary number, the result will be displayed in decimal format. This can be useful for performing calculations or organizing data in a spreadsheet.

BIN2DEC

The BIN2DEC function converts a signed binary number to decimal format.

Sample Usage

BIN2DEC(101)

BIN2DEC(A2)

Syntax

BIN2DEC(signed_binary_number)

  • signed_binary_number – The signed 10-bit binary value to be converted to decimal, provided as a string.

    • The most significant bit of signed_binary_number is the sign bit; that is, negative numbers are represented in two’s complement format.

    • For this function, the input value has a maximum of 0111111111 if positive, and a minimum of 1000000000 if negative.

    • If signed_binary_number is provided as a valid binary number, it will automatically be converted to the appropriate string input. For example, BIN2DEC(100) and BIN2DEC("100") yield the same result: 4.

Notes

  • As with any binary value, only the digits 0 and 1 are valid. Digits other than these will cause BIN2DEC to return a #NUM! error.

See Also

OCT2HEX: The OCT2HEX function converts a signed octal number to signed hexadecimal format.

OCT2DEC: The OCT2DEC function converts a signed octal number to decimal format.

OCT2BIN: The OCT2BIN function converts a signed octal number to signed binary format.

HEX2OCT: The HEX2OCT function converts a signed hexadecimal number to signed octal format.

HEX2DEC: The HEX2DEC function converts a signed hexadecimal number to decimal format.

HEX2BIN: The HEX2BIN function converts a signed hexadecimal number to signed binary format.

DEC2OCT: The DEC2OCT function converts a decimal number to signed octal format.

DEC2HEX: The DEC2HEX function converts a decimal number to signed hexadecimal format.

DEC2BIN: The DEC2BIN function converts a decimal number to signed binary format.

BIN2OCT: The BIN2OCT function converts a signed binary number to signed octal format.

BIN2HEX: The BIN2HEX function converts a signed binary number to signed hexadecimal format.

Examples

Converts a binary number to its decimal value.

[wpcc-iframe height=”300″ src=”https://docs.google.com/spreadsheet/pub?key=0As3tAuweYU9QdEc4NXpZNm5SeFA2RVZMMlNZNlBjWFE&single=true&gid=0&output=html&widget=true” width=”500″]

Cite this article

stats writer (2024). How do I convert a binary number to decimal in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-convert-a-binary-number-to-decimal-in-google-sheets/

stats writer. "How do I convert a binary number to decimal in Google Sheets?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-convert-a-binary-number-to-decimal-in-google-sheets/.

stats writer. "How do I convert a binary number to decimal in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-convert-a-binary-number-to-decimal-in-google-sheets/.

stats writer (2024) 'How do I convert a binary number to decimal in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-convert-a-binary-number-to-decimal-in-google-sheets/.

[1] stats writer, "How do I convert a binary number to decimal in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How do I convert a binary number to decimal in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top