Converts a binary number to a hexadecimal number.
Cette fonction fonctionne de la même façon dans Google Sheets que dans Excel — même syntaxe et mêmes arguments.
BIN2HEX(number, [places])The BIN2HEX function converts a binary string into its hexadecimal equivalent. If the number is negative, the function returns a 10-character hexadecimal number using two's complement notation.
=BIN2HEX("11111011")Résultat : FB
Converts the binary value 11111011 to its hexadecimal equivalent FB.
=BIN2HEX("101", 4)Résultat : 0005
Converts 101 to hexadecimal and pads the result to 4 characters.
The function can handle binary numbers up to 10 bits (for positive numbers) or 10 characters (for negative numbers).