Try this formula if you have the text string (7 digits)
="S"&0&"."&MID(A2,2,3)&"."&MID(A2,5,3)
If you convert them to "real" numbers, use this function
=TEXT(A2,"\S0#\.###\.###")
Juan Pablo G.
Make that =TEXT(A1,"\S0\.000\.000") ...
...and there's no need to convert your values
to "real" numbers... TEXT() expects a numeric
value as it's first argument and will coerce
a text value to a number if permissible.
Mine should have come out as =TEXT(A2,"\S0\.###\.###") [NT]
Re: Mine should have come out as =TEXT(A2,"\S0\.###\.###") [NT]
Your use of #s poses a problem...
Try it with "0012345" or "0000001". The #'s
prevent the display of all but the 1st leading
0. This problem is avoided with the use of
=TEXT(A2,"\S0\.000\.000"). Within a number
format #s are used to suppress insignificant
leading or trailing zeroes. Obviously, for
account numbers and the like there are no
insignificant digits.
Re: Your use of #s poses a problem...