Please provide a full example of the source data and what the
session ID is supposed to be.
For the first example you posted, the session ID is
"000004763331" which is only twelve bytes.
My code converted that to an int, "4763331" which you can do
math on if you wish.
If you take the last 16 of your first example, you get
"2536000004763331" which starts with the minutes and seconds!
You can get the last 16 "bytes" like so:
sLast16 = REReplace (Right (sLWord1, 16), "^0*([^0].*)$",
"\1");
So, for a given: (1) coded value, (2) id1, and (3) id2;
please specify what the session ID should be.