Skip to main content

DEC2HEX

Definition of DEC2HEX

Converts a decimal number to signed hexadecimal format.

Sample Usage

DEC2HEX(100,8)

DEC2HEX(A2)

Syntax

DEC2HEX(decimal_number, [significant_digits])

  • decimal_number - The decimal value to be converted to signed hexadecimal, provided as a string.

    • For this function, this value has a maximum of 549755813887 if positive, and a minimum of -549755814888 if negative.

    • If decimal_number is provided as a valid decimal number, it will automatically be converted to the appropriate string input. For example, DEC2HEX(100) and DEC2HEX("100") yield the same result: 64.

  • significant_digits - [ OPTIONAL ] - The number of significant digits to ensure in the result.

    • If this is greater than the number of significant digits in the result, the result is left-padded with zeros until the total number of digits reaches significant_digits.

    • This value is ignored if decimal_number is negative.

Notes

  • If the number of digits required is greater than the specified significant_digits, the #NUM! error is returned.
  • Ensure that any calculations using the result of DEC2HEX take into account that it is in hexadecimal. Results will be silently converted; thus if cell A2 contains 100, the hexadecimal equivalent of the decimal value 256, and B2 contains a formula such as =A2+20, the result will be 120, which is incorrect in hexadecimal calculation.

See Also

OCT2HEX: Converts a signed octal number to signed hexadecimal format.

OCT2DEC: Converts a signed octal number to decimal format.

OCT2BIN: Converts a signed octal number to signed binary format.

HEX2OCT: Converts a signed hexadecimal number to signed octal format.

HEX2DEC: Converts a signed hexadecimal number to decimal format.

HEX2BIN: Converts a signed hexadecimal number to signed binary format.

DEC2OCT: Converts a decimal number to signed octal format.

DEC2BIN: Converts a decimal number to signed binary format.

BIN2OCT: Converts a signed binary number to signed octal format.

BIN2HEX: Converts a signed binary number to signed hexadecimal format.

BIN2DEC: Converts a signed binary number to decimal format.

In order to use the DEC2HEX formula, start with your edited Excellentable:

Then type in the DEC2HEX Formula in the area you would like to display the outcome:

By adding the value you would like to calculate the DEC2HEX formula for, Excellentable will generate the outcome:

 

A
B
C
D
1
State
Population
Total area in mi2
Land area in mi2
Water area in mi2
House seat(s)
2
Alabama
4833722
52,420 (135,767)
50,645 (131,170)
3
Alaska
735132
665,384 (1,723,337)
570,641 (1,477,950)
4
Arizona
6626624
113,990 (295,233)
113,594 (294,207)
5
Arkansas
2959373
53,179 (137,733)
52,035 (134,770)
6
California
38332521
163,695 (423,968)
155,779 (403,466)
7
Colorado
5268367
104,094 (269,602)
103,642 (268,432)
8
Connecticut
3596080
5,543 (14,356)
4,842 (12,541)
9
Delaware
925749
2,489 (6,446)
1,949 (5,048)
10
Florida
19552860
65,758 (170,312)
53,625 (138,888)
11
Georgia
9992167
59,425 (153,910)
57,513 (148,958)
12
Hawaii
1404054
10,932 (28,314)
6,423 (16,635)
13
Idaho
1612136
83,569 (216,443)
82,643 (214,044)
14
15
E
F
G
H
1
Date
Decimal Values
2
1,775 (4,597)
7
7/5/2008
100
3
94,743 (245,383)
1
7/6/2009
200
4
396 (1,026)
9
7/7/2010
300
5
1,143 (2,960)
4
7/8/2011
400
6
7,916 (20,502)
53
7/9/2012
500
7
452 (1,171)
7
7/10/2013
101
8
701 (1,816)
5
7/11/2014
202
9
540 (1,399)
1
7/12/2001
303
10
12,133 (31,424)
27
7/13/2002
404
11
1,912 (4,950)
14
7/14/2003
505
12
4,509 (11,678)
2
7/15/2004
111
13
926 (2,398)
2
7/16/2005
222
14
15
DEC2HEX:
64

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.