I’m trying to AND two hex number bit-wise in Excel/Visual Basic.
Ex. 53FDBC AND 00FFFF which should yield 00FDBC.
Any ideas on how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you have your 2 values stored as strings. In this case you could do the following:
result now contains ‘FDBC’, but you may wish to pad this to the left with zeroes
As a function (excel module) this could be implemented as: