Forum Discussion

ep2's avatar
ep2
Regular Visitor
3 years ago

Custom string format not using thousands separator to split on the million

I am trying to create a custom format that will use a space as the thousands separator. "# ##0" is working perfectly except that it does not put in an additional space once the number goes over a million.

 

For example:

  • 12345.111 is formatted as 12 345 which is what I want.
  • But 1234567.11 is formatted as 1234 567 which is not what I want (I want it to be 1 234 567 i.e. with a space separating million as well)

I have tried "# ### ##0" as well, and while this does work for numbers larger than a million, it also inserts the second space for numbers smaller than a million which is a problem.

 

So for example, if I add currency to the format, namely "R# ### ##0" then:

  • 1234567.11 is formatted as R1 234 567 which is what I want
  • But 12345.111 is formatted as R 12 345 which is not what I want (additional space between currency symbol and first digit)

 

 

 

No RepliesBe the first to reply