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 9 Convert A Hexadecimal Number to Decimal 10 Convert A Hexadecimal Number to Decimal 11

Related Posts

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar