1. Home
  2. Functions
  3. Engineering
  4. HEX2DEC

HEX2DEC function

Converts a hexadecimal number to decimal.

Syntax

=HEX2DEC(number)

Arguments

ArgumentRequiredDescription
numberRequiredThe hexadecimal number (up to 10 characters)

How to use HEX2DEC

HEX2DEC takes 1 required argument. Type =HEX2DEC( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=HEX2DEC("A5")Result 165
=HEX2DEC("FFFFFFFF5B")Result -165
=HEX2DEC("3DA408B9")Result 1034160313

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.