When I use ="""" & TEXT("1468", "# ###") & """", "1 468" is returned. Perfect.
However, once 4 digits become 3 digits, I get an empty space at the beginning. " 468". Not perfect.
What text format can I use to avoid that empty space?
When I use ="""" & TEXT("1468", "# ###") & """", "1 468" is returned. Perfect.
However, once 4 digits become 3 digits, I get an empty space at the beginning. " 468". Not perfect.
What text format can I use to avoid that empty space?
Just wrap the inner portion in TRIM( ):
="""" & TRIM(TEXT("468", "# ###")) & """"
TRIM removes superfluous leading, trailing and interposed space characters.
[<1000]\"0\";[>999]\"# ##0\";0;@\" from the custom format string.