|
|
Question : Excel: Leading Zero Hex Format
|
|
I want to be able to display a hexadecimal number as a two digit number with a leading zero (ie. from 00 to FF ).
I am using the DEC2HEX () function to obtain the hex value. I then tried to use Format Cells -> Number -> Custom -> and Entered 00. Now this seems to produce a leading zero number for general decimal numbers, but when it is applied to the DEC2HEX () field the number does not have a leading zero.
Can anyone suggest a solution or a work around?
BM
|
Answer : Excel: Leading Zero Hex Format
|
|
Use: Dec2Hex(A1,2)
|
|
|
|
|