HEX2OCT 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. Sometimes, we want to convert the hexadecimal values into octal values. For that, we can use the HEX2OCT function in the worksheet.
This article will learn how to use HEX2OCT Function in Excel using its basic syntax, explanation, and examples. Let’s see them below!! Get the official version of MS Excel from the following link:
https://www.microsoft.com/en-in/microsoft-365/excel
Jump To
Description of HEX2OCT Function
- It is one of the built-in functions in Microsoft Excel.
- This Function will convert the hexadecimal number into an octal number.
- Sample hexadecimal values are A3 and B5.
Syntax
- Here, you will see the syntax of the HEX2OCT 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.
=HEX2OCT(number, [places])
Argument Explanation:
- number – The hexadecimal number that you want to convert to octal.
- places – It is an optional one. Pads the resulting binary number with zeros up to the specified number of digits.
Note:
1) If the input is not a valid hexadecimal number, it returns #NUM! Error.
2) If you give any negative value in the places option, it returns #NUM! Error.
3) If “places” is a non-numeric value, it will show #VALUE! Error.
Examples
The following are examples of the HEX2OCT 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 octal values that are equal to the given hexadecimal values using the HEX2OCT function.
- Then, you have to enter the formula in the cell as shown below to get the result.
- After entering the formula, you need to click the Enter button to get the output.
- 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.
Input that Causes Error
- If the input is not a valid hexadecimal number, it returns #NUM! Error.
- If you give any negative value in the places option, it returns #NUM! Error value.
- If “places” is a non-numeric value, it will show #VALUE! Error.
A Brief Summary
In this article, we guided you to learn the usage of the HEX2OCT Function in Excel using its basic syntax, explanation, and examples. Leave your feedback in the comment section. To learn more about Excel functions, then visit our webpage, Aawexcel.com.
Video Tutorial
The following video will show you how to apply the HEX2OCT function in the worksheet with a few examples.
Keep Reading:
- How to Use Excel FLOOR.MATH Function?
- How to Use Excel FLOOR Function?
- How to Use Excel CEILING.PRECISE Function?
- How to Use Excel CEILING Function?
- How to Use Excel GCD Function?
Hi there, I’m Sridhar – an Excel enthusiast with over 10 years of experience working with software. I’m passionate about using Excel to solve complex problems and streamline business processes. Over the years, I have helped businesses of all sizes to improve their operations and save time and money.
Aside from working with Excel, I also enjoy writing and sharing my knowledge with others. You’ll often find me contributing to the AAW Excel blog, where I provide tips, tricks, and tutorials that are easy to understand for readers of all skill levels.