sccowl
New Member
Posted this on stackoverflow, trying here for some inspiration.
I want to format some financial data using spaces instead of commas to separate '000's. I am struggling to get the format to scale to larger numbers. Any solution for me needs to by distributed and not use VBA.
Excel scales the format perfectly with commas, using something like #,##0;(#,##0) expanding to add commas every 3 numbers. e.g. 1234567890 converts to 1,234,567,890
However, I want to show this number as 1 234 567 890.
I can force a space into the format, using something like # ##0 which works for up to 6 digits but not more. I could use # ### ##0, but ideally want a scalable solution that can handle any number in the same way regardless of digits.
The above also runs into problems with negatives, as I end up with a space between the brackets on every variation other than the format I use. I can fix -1234567 to (1 234 567) using (# ### ##0) but this becomes ( 123 456) for 6 digits rather than (123 456).
Is there a character code or something else to force a space and make it behave the same way as a comma in the number formatting code.
[Update] Its possible to change on my system by specifying a custom seperator, a space instead of a comma, which works perfectly but only locally on my system.
Thanks
I want to format some financial data using spaces instead of commas to separate '000's. I am struggling to get the format to scale to larger numbers. Any solution for me needs to by distributed and not use VBA.
Excel scales the format perfectly with commas, using something like #,##0;(#,##0) expanding to add commas every 3 numbers. e.g. 1234567890 converts to 1,234,567,890
However, I want to show this number as 1 234 567 890.
I can force a space into the format, using something like # ##0 which works for up to 6 digits but not more. I could use # ### ##0, but ideally want a scalable solution that can handle any number in the same way regardless of digits.
The above also runs into problems with negatives, as I end up with a space between the brackets on every variation other than the format I use. I can fix -1234567 to (1 234 567) using (# ### ##0) but this becomes ( 123 456) for 6 digits rather than (123 456).
Is there a character code or something else to force a space and make it behave the same way as a comma in the number formatting code.
[Update] Its possible to change on my system by specifying a custom seperator, a space instead of a comma, which works perfectly but only locally on my system.
Thanks