Does michaelst = Briancul ?
Does xor = XOR LX ?
a formula solution to a very similar question asked today on another forum
https://www.mrexcel.com/forum/excel-...ml#post4808409
a VBA user defined function from over 5 years ago
http://www.ozgrid.com/forum/showthre...619#post560619