ExcelFlux

DEC2HEX function

Conversion — a decimal number to hexadecimal.

Engineering

Where can you use it?

Engineering and technical analysis teams. If the calculation needs a number base, unit, complex number or special mathematical operation, check the input format against the example.

Scenario in the workbook

Display a decimal device value as hexadecimal text. The result is text.

A worked example from the workbook

RowA
6Input
79
816
932
Record 1
=DEC2HEX(A7)

Expected result9

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=DEC2HEX(255)
Turkish Excel · tr-TR
=DEC2HEX(255)

Expected result

“FF”

Worked examples

Display a decimal device value as hexadecimal text. The result is text.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A
6 Input
7 9
8 16
9 32
Case Formula Expected result
Record 1 =DEC2HEX(A7) 9
Record 2 =DEC2HEX(A8) 10
Record 3 =DEC2HEX(A9) 20
Microsoft Excel reference