Hey BOB Members, I’m trying to find formatting a social security number from 123456789 to format 123-45-6789.
I had return Subtring
=Substr(FormatNumber([Social Secutity Number - Full];“0”);1;3) + “-” + Substr(FormatNumber([Social Secutity Number - Full];“0”);4;2)+ “-” + Substr(FormatNumber([Social Secutity Number - Full];“0”);6;4).
It’s working but issue is someone SSN starting with 0. giving me problem
(i.e) 012345678 showing 123-45-678.
Probably my logic is silly.
But you can check the length of the final SSN in the string format. If is it not full, then you can prefix a zero. There could be better & optimal solutions which I am not able to think.
That was pretty close Mark! I ended up using the following:
=Substr([Borrower 1 SSN];1;3)+"-"+Substr([Borrower 1 SSN];4;2)+"-"+Substr([Borrower 1 SSN];6;4)
Thanks for the assist!
I also found another method this morning:
=Left([Borrower 1 SSN];3) + “-” + Substr([Borrower 1 SSN];4;2)+ “-” + Right([Borrower 1 SSN];4)