BIN2HEX(x,places)
x: a binary number, either as a string or as a number involving only the digits 0 and 1
places: number of digits
If places is given, BIN2HEX pads the result with zeros to achieve exactly places digits. If this is not possible, BIN2HEX returns #NUM!
This function is Excel compatible.