← All functions

DEC2HEX

Supported, behaves as documented

Category: Engineering · Last tested 2026-08-06

Real, executed compatibility results for the DEC2HEX function across Microsoft Excel, Google Sheets, and LibreOffice Calc — verified by actually running it. Syntax and links to each vendor’s official documentation are below.

Support matrix

EngineDocumentedLive-testedVerdict
Excel Yes Not yet n/a
Google Sheets Yes Not yet n/a
LibreOffice Calc Yes Yes (25.8.7.3, 2026-08-06) Supported, behaves as documented

Executed test cases

LibreOffice Calc 25.8.7.3 (tested 2026-08-06)

FormulaDescriptionResultExpectedVerdict
=DEC2HEX(255) Converts a decimal number to its hexadecimal text representation FF FF Matched
=DEC2HEX(16) 16 in decimal is 10 in hexadecimal 10 10 Matched
=DEC2HEX(255,4) The optional second argument pads the result to a minimum number of characters with leading zeros 00FF 00FF Matched

Docs & syntax

Related how-to recipes