Engineering

DEC2HEX

Convert a decimal representation into hexadecimal.

Syntax

=DEC2HEX(number, [places])

Worked example

Represent decimal 255 using hexadecimal digits.

=DEC2HEX(255)

Result FF (text)

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoftโ€™s reference.

Microsoft reference

Search ExcelTutor