in excel, how to limit digits of negative hexadecimal numbers?

G

Guest

how does one limit the number of digits displayed in a negative hexadecimal
number?

e.g., instead of the default 10 digits, somethimes i'd like to have only 3
digits, other times 4.
 
G

Guest

Remember that the hex "digits" are just a string representing the number:


In A1 put -700
in B1 put =DEC2HEX(A1) and you will see FFFFFFFD44
if you want the upper half then use =RIGHT(HEX2DECMAL(A1),4)
if you want the lower half then use =LEFT(HEX2DECMAL(A1),4)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top