#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Debs
 
Posts: n/a
Default IntToHex Error

I have a list of decimals ie. Cell B1 = .52399 and I would like to format
these cells to view them multiplied by 100000 and converted to Hex. So I
have used the formula
=INTTOHEX(B1*100000). This formula almost works but it is off. It should
give me a HEX value of CCAF however it gives me a value of CCAE!!! I think
this might be because INT seems to have a round down function of some sort.
Is there anything I do to fix this??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default IntToHex Error

Try rounding it as I am sure it is due to FP arithmetic

=DEC2HEX(ROUND(B1*100000,0),4)

DEC2HEX is the English function, you might need to use a local language
version and maybe semi-colons not commas.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Debs" wrote in message
...
I have a list of decimals ie. Cell B1 = .52399 and I would like to format
these cells to view them multiplied by 100000 and converted to Hex. So I
have used the formula
=INTTOHEX(B1*100000). This formula almost works but it is off. It should
give me a HEX value of CCAF however it gives me a value of CCAE!!! I

think
this might be because INT seems to have a round down function of some

sort.
Is there anything I do to fix this??



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
Ignore error msgs in formula references gharden Excel Discussion (Misc queries) 4 June 17th 05 12:14 AM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 7 March 7th 05 06:29 PM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 0 February 28th 05 06:26 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM


All times are GMT +1. The time now is 07:45 AM.

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

About Us

"It's about Microsoft Excel"