HEX2OCT(x,places)
x: a hexadecimal number, either as a string or as a number if no A to F are needed
places: number of digits
If places is given, HEX2OCT pads the result with zeros to achieve exactly places digits. If this is not possible, HEX2OCT returns #NUM!
This function is Excel compatible.