# Excel HEX2DEC Function

Summary

The Excel HEX2DEC function converts a hexadecimal number to its decimal equivalent.

Purpose

Converts a hexadecimal number to decimal

Return value

Decimal number

Syntax

=HEX2DEC (number)

Arguments

**number**- The hexadecimal number you want to convert to decimal.

Usage notes

- The input number must be less than or equal to ten alpha-numeric characters, otherwise the function returns the #NUM! error value.
- The internal (binary) representation of the hexadecimal number uses two's complement notation. The first bit indicates whether the number is positive or negative, and the other 39 bits indicate the magnitude of the number.

Good links

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.