How can I convert a hexadecimal number to decimal in Google Sheets?

How can I convert a hexadecimal number to decimal in Google Sheets?

Converting a hexadecimal number to decimal in Google Sheets can be achieved by using the HEX2DEC function. This function allows users to enter a hexadecimal number in a cell and it will automatically convert it to its decimal equivalent. This is useful for mathematical calculations and data analysis that require decimal values. To use this function, simply input the hexadecimal number in the designated cell and apply the HEX2DEC function to the cell. The result will be the decimal equivalent of the entered hexadecimal number. This feature in Google Sheets provides an efficient and accurate method for converting hexadecimal numbers to decimal, saving time and effort for users.

HEX2DEC

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

Sample Usage

HEX2DEC("f3")

HEX2DEC(A2)

Syntax

HEX2DEC(signed_hexadecimal_number)

  • signed_hexadecimal_number – The signed 40-bit hexadecimal value to be converted to decimal, provided as a string.

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

    • For this function, this value has a maximum of 7fffffffff if positive, and a minimum of 8000000000 if negative.

    • If signed_hexadecimal_number is provided as a valid hexadecimal number, it will automatically be converted to the appropriate string input. For example, HEX2DEC(199) and HEX2DEC("199") yield the same result: 409.

Notes

  • As with any hexadecimal value, only the digits 0-9 and the letters A-F are valid. Digits other than these will cause HEX2DEC to return a #NUM! error.

    • Hexadecimal digits are not case-sensitive; a-f and A-F are equivalent.

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.

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.

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

Examples

Converts a hexadecimal number to its decimal value.

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

Cite this article

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

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

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

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

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

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

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