HEX2DEC Function in Excel

In this article, you will learn about the HEX2DEC function, the formula syntax and usage of the function in Microsoft Excel.

HEX2DEC Function in Excel

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

Syntax

=HEX2DEC(number)

Arguments:

  • Number

The hexadecimal number you want to convert to a decimal number.

Possible Errors

  • If the number is not a valid hexadecimal number, HEX2DEC returns the #NUM! error value.
  • The input number should be less than or equal to 10 characters, if not the function returns the #NUM! error value.

How to use HEX2DEC in Excel Worksheet?

Using this function in a worksheet is simple; all you need to do is enter the function as a formula of the cell in the formula bar.

Take a look at the given example

How to use HEX2DEC in Excel Worksheet?

The above numbers are the Hexadecimal version of some decimal numbers. To find out the decimal numbers, Enter the given Hexadecimal numbers in column A and in Column B enter the following formula

Formula: =HEX2DEC(A1)

Here, A1 refers to the cell name or the cell address. Repeat the same to the other cells and you will get the decimal values of the Hexadecimal numbers.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn how to Find Blank cells in excel so that you can remove or delete the blank cells form...
In this article, you’ll learn what is a Gauge Chart in Microsoft Excel. Also, you will learn how to add...
Microsoft Excel provides a shortcut for the users to move columns in excel using two different ways – using Shift...