- Advanced Excel Functions Tutorial
- Advanced Excel Functions - Home
- Compatibility Functions
- Advanced Excel Functions - Cube
- Database Functions
- Date & Time Functions
- Engineering Functions
- Financial Functions
- Information Functions
- Advanced Excel Functions - Logical
- Lookup & Reference Functions
- Math & Trignometric Functions
- Statistical Functions
- Useful Resources
- Quick Guide
- Useful Resources
- Discussion
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 −
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