Excel gives functions that will assist in converting from decimal to one of binary, octal and hexadecimal, and back again.
Note that there are no leading 0 or 0x in the functions.
0
0x