ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hexadecimal mathematics (https://www.excelbanter.com/excel-programming/407803-hexadecimal-mathematics.html)

Vikas

hexadecimal mathematics
 
how to substract two hexadecimal numbers

joel

hexadecimal mathematics
 
Just subtract the numbers

a = &H22
b = &H33
c = b - a
MsgBox ("Answer: " & c & ", Hex Answer: " & Hex(c))

The answer above is 17 decimal, which is &H11. You need to format the 17 as
a Hex Number using the Hex function

"vikas" wrote:

how to substract two hexadecimal numbers



All times are GMT +1. The time now is 10:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com