Newbie needs help to perform a checksum based on XOR

Nullplan

New Member
Joined
Apr 20, 2003
Messages
3
Hi, being a total newbie to excel stuff I hope I will understand your replies to my problem.

However, I'd like to calculate a checksum for a row of HEX-bytes based on XOR. Result should be in hex aswell !

Example:

aa XOR bb XOR cc XOR dd ...

Windows' own calculator will do the trick but with a growing number of bytes to 'xor', I tend to produce typos. Not to mention how boring that is... *g*

BEST would be something like a function: XOR (A1:A200) :)
 
Hi Guys, I'm another newbie with exactly the same requirement. I have tried both the above and am getting the same error as sydinstaller when I try Damon's method and when I use Greg's revised method all I get is the bottom number in the column of hex values.

I thought I had the perfect solution to my problem but am obviously missing something. I have never used VBE before so if someone could explain what to do I'd really appreciate it.

Thanks in advance

Ed

There is a typo in the code, otherwise its just perfect. The code should be as follows - part of ChkSumXOR is missing _2010 in this line:


ChkSumXOR_2010 = wf.Dec2Hex(wf.Hex2Dec(ChkSumXOR_2010) Xor wf.Hex2Dec(Cell))
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,216,529
Messages
6,131,197
Members
449,634
Latest member
sunilj56

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top