Engineering - HEX2DEC Function



Description

The HEX2DEC function converts a hexadecimal number to decimal.

Syntax

HEX2DEC (number)

Arguments

Argument Description Required/ Optional
number

The hexadecimal number you want to convert.

Number cannot contain more than 10 characters (40 bits). The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits.

Negative numbers are represented using two's-complement notation.

Required

Notes

  • The Hexadecimal (Base 16) Numeral System uses the digits 0-9 and the characters A-F

  • The following table shows the first 32 hexadecimal values, along with the equivalent decimal values −

HEX2DEC Hexadecimal Values
  • As hexadecimals use the numbers 0-9 and the characters A-F, they should be enclosed in quotation marks when they are supplied to an Excel function. For example, the hexadecimal 11A should be input as "11A"

  • If number is not a valid hexadecimal number, HEX2DEC returns the #NUM! error value.

Applicability

Excel 2007, Excel 2010, Excel 2013, Excel 2016

Example

HEX2DEC Function
advanced_excel_engineering_functions.htm
Advertisements