Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 238
Default Hex conversion trouble

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



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 238
Default Hex conversion trouble

Got it.

StartIt = Val("&h" & HexStartIt & "&")
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Hex conversion trouble

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.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Fan924" wrote:

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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IRR Trouble jeff Excel Worksheet Functions 1 August 20th 07 09:42 PM
Trouble with IF EG Excel Worksheet Functions 9 October 3rd 06 07:15 PM
If than Else Trouble Goofy Excel Worksheet Functions 2 February 19th 06 10:48 AM
>= Trouble AcesUp Excel Discussion (Misc queries) 3 August 23rd 05 11:43 PM
unexpected conversion trouble jeunecorto Excel Discussion (Misc queries) 1 June 3rd 05 06:33 PM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"