简体   繁体   中英

Empty Space, Text Formatting, Google Sheets

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.

enter image description here

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM