How to Convert A Hexadecimal Number to Decimal in Excel

Sometimes we use hexadecimal numbers to mark products in daily life, and we want to convert these hexadecimal numbers to decimal numbers in some situations. We can convert number between two number types by convert tool online, actually we can also convert numbers by function in excel as well. In excel, =HEX2DEC(number) can help you to convert hexadecimal number to decimal properly, and on the other side, you can use =DEX2HEX(number) to convert decimal to hexadecimal number.

Part 1. Convert Hex Number to Decimal in Excel


As we mentioned above, we can use HEX2DEC function to convert numbers conveniently. Just prepare a table with two columns, one column is used for recording HEX numbers, the second column is used for saving the converted decimal numbers.

Convert A Hexadecimal Number to Decimal 1

Step 1: in B1 enter the formula =HEX2DEC(A2).

Convert A Hexadecimal Number to Decimal 2

Step 2: Click Enter to get returned value. So 21163 in B2 is the mapping decimal number for 52AB.

Convert A Hexadecimal Number to Decimal 3

Step 3: Drag the fill handle down to fill the following cells.

Convert A Hexadecimal Number to Decimal 4

Verify that all hexadecimal numbers are converted to decimal numbers correctly. You can also double check the result by convert tool online to make sure the result is correct.

Note:

Sometimes hexadecimal numbers are displayed like 0x52AB, user can remove 0x before 52AB and then use HEX2DEC function to convert number.

Part 2. Convert Decimal to Hex Number in Excel


Prepare another table, the first column is Decimal, the second column is Hex Number.

Convert A Hexadecimal Number to Decimal 5

Step 1: in B10 enter the formula =HEX2DEC(A2).

Convert A Hexadecimal Number to Decimal 6

Step 2: Click Enter to get returned value. So 4D2 in B10 is the mapping hex number for 1234.

Convert A Hexadecimal Number to Decimal 7

Step 3: Drag the fill handle down to fill the following cells.

Convert A Hexadecimal Number to Decimal 8

Note:

There are some other functions to convert numbers between different types. See below screenshot.

Convert A Hexadecimal Number to Decimal 9Convert A Hexadecimal Number to Decimal 10Convert A Hexadecimal Number to Decimal 11

Related Posts

Match Single Criteria in Excel

No repeat statistic based on a single condition is used wildly in daily work, for example, count type of products, the duplicate types are not encountered. This article describes the way of no repeats statistics for data in a single ...

Excel Array Construction

This article will talk about how to create one-dimensional array or two-dimensional array by using some functions in Excel. When using array formulas in Excel, we often use functions to construct arrays. Generate Array with ROW or COLUMN Functions Array ...

Excel Array Operation

We have all heard of arrays. Depending on the dimensionality, they are divided into one-dimensional arrays and two-dimensional arrays. Depending on the data type, they can also be divided into numeric arrays, logical arrays, and so on. The concatenation and ...

Excel Array Matrix Operation

In Excel, we have a built-in function used to perform matrix operations. It is the MMULT function. This function accepts two arrays as parameters and returns the product of the two arrays. However, this function has a prerequisite that the ...

A1 Reference Style and R1C2 Reference in Excel

In Excel, there are two reference styles. A1 reference style and R1C2 reference style. These two reference styles can help us find the cell by the cell address. Some functions return these two addresses through the argument settings. A1 Reference ...

Sidebar