Robert_Steel@nothanks.com
Guest
Re: ? Link attached - How to validate SIN (Social Insurance Number)
If you are able to enter each digit into a seperate cell
eg. A1:I1
=SUMPRODUCT(INT((A1:I1)*{1,2,1,2,1,2,1,2,1}/10)+MOD((A1:I1)*{1,2,1,2,1,2,1,2,1},10))
will return the check digit.
You can check this is a multiple of 10 using
=if(mod(B1,10)=0,"OK","Error")
There may be a way to simply enter the SIN with ###-###-### format but I
will need to give it more thought.
Let us know if this does the job or give us more info on how you would
like to enter the number and exactly what output you would like.
hth RES
Bookmarks