Skip to content

How to Use Excel HEX2DEC Function?

Ads
Listen to this article.
HEX2DECPin
HEX2DEC

HEX2DEC Function in Excel: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It uses spreadsheets to store, organize, or perform operations with formulas and functions. If you want to convert the hexadecimal values into decimal numbers, then you can use the HEX2DEC function.

This article will learn how to use HEX2DEC Function in Excel with its basic syntax, description, and examples. Get the official version of MS Excel from the following link: 

https://www.microsoft.com/en-in/microsoft-365/excel

Excel HEX2DEC FunctionPin
Excel HEX2DEC Function

Description of HEX2DEC Function

  • It is one of the built-in functions in Microsoft Excel.
  • Using the HEX2DEC function, you can easily convert the hexadecimal value into a decimal value.
  • This function is just the opposite of the DEC2HEX Function in Excel.

Syntax

  • Here, you will see the syntax of the HEX2DEC function.
  • To apply this function on your spreadsheet, you must select a cell and enter the formula in the following format.
  • Once you enter the formula, click the Enter button to get the result.

=HEX2DEC(number)

Argument Description:

  • Number – The number you want to convert into a decimal value.

Note:
1) If the input is not a valid hexadecimal number, it returns #NUM! Error.
2) The hexadecimal numbers or values must not contain any negative sign in front of it.

Examples

The following are examples of the HEX2DEC function for your reference.

  • Initially, you have to open your Excel workbook on your PC and launch the worksheet with data.
  • For instance, we have given the input values in the range B3:B6. And we will find out decimal values that are equal to the given hexadecimal values using the HEX2DEC function.
Input ValuesPin
Input Values
  • Then, you have to enter the formula in the cell as shown below to get the result.
Enter the formulaPin
Enter the formula
  • After entering the formula, you need to click the Enter button to get the output.
ResultPin
Result
  • Once you get the output for the first cell, then you can drag down the cell to the below to get the result of the remaining cells.
Fill remaining cellsPin
Fill remaining cells

Input that Causes Error

  • If the input is not a valid hexadecimal number, it returns #NUM! Error.
Num ErrorPin
Num Error

Wind-Up

In this article, you can learn the usage of the HEX2DEC Function in Excel with its syntax, description, and examples. Drop your suggestions in the below comment section. To learn more about Excel functions, then visit our webpage, Aawexcel.com.

Video Tutorial

You can use the following video to know how to apply the HEX2DEC function in the worksheet.

Read Also:

Tags:

Leave a Reply

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

Share to...