All,
I am attempting to create a string of alphanumeric characters (anywhere from 1 to 65515 characters), convert that into hexadecimal format, then report the total byte length.
Here is what I have thus far:
Input into cell K132
Output in cell J132 =DEC2HEX(CODE(MID(K132,1,1)))&DEC2HEX(CODE(MID(K132,2,1)))&DEC2HEX(CODE(MID(K132,3,1)))&DEC2HEX(CODE(MID(K132,4,1)))&DEC2HEX(CODE(MID(K132,5,1)))&DEC2HEX(CODE(MID(K132,6,1)))&DEC2HEX(CODE(MID(K132,7,1)))&DEC2HEX(CODE(MID(K132,8,1)))&DEC2HEX(CODE(MID(K132,9,1)))&DEC2HEX(CODE(MID(K132,10,1)))
I don't really think that this method would be good for 65515 bytes (plus I think excel has a maximum limitation on logic arguments). If I continue this method, I would have to set the maximum byte size per row (thereby forcing a set limit, then setting any unused characters to spaces or hex 0x20).
There must be an easier way of converting a string of alphanumeric characters without having to break it up into 10-character pieces...any thoughts?
Respectfully,
Talamon
Bookmarks