# BIN2HEX Excel Formula

To convert binary numbers to hexadecimal number, or converting base 2 numbers to base 16 you can use** **BIN2HEX function in Excel. The language used in computer programming are binary but are greatly represented by hexadecimal numbers. Hexadecimal characters are composed of numbers from 0-9 which are followed by the alphabets A to F.

Before using function, first load and install the Analysis ToolPak. This is through selecting the Add-Ins on the Tools menu. Next, select from the list on Add-Ins list the Analysis ToolPak and click on OK. There are also available instructions and setup in the program.

The syntax of the function or the series of arguments for the BIN2HEX function is BIN2HEX (value [, precision]). The value on the function is the binary number which is to be converted while the precision can be left blank. Precision here represents the minimum digits of the return value.

You can try the function be opening a blank Excel worksheet. Input the function =BIN2HEX (11111011, 4) on the A1 cell. This will return to 00FB wherein 1111 in binary form is F in hexadecimal and 1011 is a binary and is B in hexadecimal.

Take note that if the value is an invalid binary number or contains 10 bits or more an error will occur which is #NUM. A negative character will be ignored and the BIN2HEX function will return to a hexadecimal number with ten characters. In addition, if the places are not an integer, non-numerical, and are negative an error will occur.

To view the results and to view the formulas with the results you can press Ctrl+` (grave accent). You can also do this by clicking on the Formulas tab and in the Formula Auditing group select on the Show Formula button. All the Best!

### Further readings

## Post comment

## Categories

## Recent Posts

- How to Use the MS Excel Keyboard Shortcuts
- How to Locate Duplicate Records Quickly By Using Conditional Formatting in MS Excel
- How to Use PasteSpecial – Procedures for Microsoft Excel 2003 and Microsoft Excel 2007
- How to Sort using an AutoFilter – Understanding and Learning the Feature
- How to Base a Chart Off of Auto Filtered Records
- How to Use IF IsError Together?
- How to Use Custom Views
- How to Create Pivt Table
- How to Manipulate PivotTable after It has Been Created
- How to Update the Data in a Pivot Table
- How to Create Dynamic Named Ranges
- How to Use an Array
- How to Embed 8 If Statements into 1
- How to Edit a Recorded Macro?
- How to Record a Macro