Lesson#34: Decimal to Hexadecimal by DEC2HEX function

Lesson#34: Decimal to Hexadecimal by DEC2HEX function

DEC2HEX converts the Decimal number system to the Hexadecimal number system.

Syntax of this function is DEC2HEX( number, [places] ) where number is the number in decimal format. [places] is optional, which specifies the number of characters that you want the returned hexadecimal number to have. If omitted returns the least number of characters required to represent the number.

Remarks:

  1. If Number is less than -549,755,813,888 (-2^39) or greater than 549,755,813,887(2^39-1), DEC2HEX returns the #NUM! error value.
  2. If the number is non-numeric, DEC2HEX returns the #VALUE! error value.
  3. If the result of DEC2HEX requires more than the number of specified Places characters, it returns the #NUM! error value.
  4. If the place is not an integer, it shows #NAME! error.
  5. If Places is non-numeric, DEC2HEX returns the #VALUE! error value.
  6. If Places is negative, DEC2HEX returns the #NUM! error value.
See also  Lesson#160: How to use INDEX and MATCH? | INDEX-MATCH vs VLOOKUP

Hi! I am Puspendu. I am the founder and author of Excelabcd. I am little creative person, blogger and Excel-maniac guy. I hope you enjoy my blog.

Leave a Reply

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

*