Hex conversion trouble

  • Thread starter Thread starter Fan924
  • Start date Start date
F

Fan924

StartIt = Val("&h" & HexStartIt)

For HexStartIt under 7FFF, I get a positive number.
With 842D, I get -31697. How can I fix this?

Excel 97
 
Hi,

Glad you got it. But I also wanted to point out, if you don't know - Excel
has a number of function for converting binary and decimal to and from hex

BIN2HEX, DEC2HEX, HEX2BIN, and HEX2DEC

These function are part of the Analysis ToolPak, which you attach by
choosing Tools, Add-ins, and checking Analysis ToolPak.
 

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

Back
Top