Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Ignore error msgs in formula references | Excel Discussion (Misc queries) | |||
Error trapped only while stepping through the code - Not triggered when run | Excel Discussion (Misc queries) | |||
Error trapped only while stepping through the code - Not triggered when run | Excel Discussion (Misc queries) | |||
Problem with VBA returning the contents of a long formula. | Excel Discussion (Misc queries) | |||
ERROR | Excel Discussion (Misc queries) |