Skip to Content

DEC2HEX

Converts a decimal number to hexadecimal

Syntax

DEC2HEX(number, [places])

Parameters

  • number: Required. The decimal integer you want to convert
  • places: Optional. The number of characters to use

Example

=DEC2HEX(100, 4)
Returns: StringSince: Excel 2003