ExcelFlux

HEX2DEC function

Conversion — a hexadecimal number to decimal.

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

Decode hexadecimal device values. Letters A through F are digits.

A worked example from the workbook

RowA
6Input
7FF
810
9A0
Record 1
=HEX2DEC(A7)

Expected result255

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=HEX2DEC("FF")
Turkish Excel · tr-TR
=HEX2DEC("FF")

Expected result

255

Worked examples

Decode hexadecimal device values. Letters A through F are digits.

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 FF
8 10
9 A0
Case Formula Expected result
Record 1 =HEX2DEC(A7) 255
Record 2 =HEX2DEC(A8) 16
Record 3 =HEX2DEC(A9) 160
Microsoft Excel reference