How to Force Commas as Thousands Separators in Excel Custom Number Formats
Question details
The user needs to display commas as thousands separators in spreadsheet custom number formats, even when the system's regional settings define a space as the default thousands separator.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating reports or formatting financial data where a comma thousands separator is strictly required, regardless of the local operating system's default regional settings.
- Observed behavior
- The spreadsheet application defaults to the system's regional settings (using spaces instead of commas). Simply inserting a comma into a standard custom number format fails to act as a thousands separator if the OS uses a space.
Determine whether you need commas as thousands separators for just a few specific cells or across all your Windows applications. If it's just for the current spreadsheet, use the custom formatting solution; otherwise, changing your system's regional settings might be more efficient.
Apply Conditional Custom Number Formats
Use specific conditional formatting codes to bypass system regional settings and force commas for thousands and millions within selected cells.
Spreadsheet software does not reliably treat a character other than the system's default as a thousands separator. As a workaround, you can build conditional logic into your custom number format. This explicitly places commas at specific magnitude breakpoints.
Highlight the range of cells containing the numbers you want to format.
Right-click the selected cells and choose 'Format Cells', or press the 'Ctrl + 1' keyboard shortcut.
Under the 'Number' tab, click on 'Custom' at the bottom of the Category list.
In the 'Type' field, enter: [>=1000000]0,000,000;[>=1000]0,000;0 to format numbers up to 999,999,999 properly.
If your data includes negative values, use this format code instead to ensure proper comma placement up to 999,999: [<=-1000]-0,000;[>=1000]0,000;0

Change System Regional Settings
If you want commas as thousands separators everywhere in your spreadsheet application, modify your operating system's regional settings.
Format Numbers Perfectly with WPS Spreadsheet
WPS Office provides a highly capable Spreadsheet application that fully supports advanced custom number formatting, conditional formatting rules, and regional setting overrides. Easily make your financial reports look exactly as required.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook in WPS Spreadsheet.
- 2. Access Format Cells: Select your data and press 'Ctrl + 1' to open the Format Cells dialog.
- 3. Apply Custom Format: Navigate to the 'Custom' category and input your conditional comma rule (e.g., [>=1000]0,000;0).
- 4. Save your Document: Click 'OK' to apply the formatting, then save your file. The formatting will remain fully compatible with Microsoft Excel.

Frequently Asked Questions
Why doesn't the comma work as a thousands separator in my standard custom format?
Spreadsheet software relies on your computer's system regional settings. If your operating system is set to use a space or a dot for digit grouping (which is common in many European regions), simply typing a comma in the format code (#,##0) will be ignored or display incorrectly unless you use specific conditional formatting rules or alter the OS settings.
How do I format both positive and negative numbers with forced commas?
You can combine conditions in your custom format by utilizing the semicolon delimiter. For example, using the format code [<=-1000]-0,000;[>=1000]0,000;0 ensures that both positive numbers over 1,000 and negative numbers under -1,000 display the comma character explicitly.
Can I use the TEXT function to force comma separators?
The TEXT function also strictly follows the system's regional separator rules by default. However, you can use the same conditional format string inside the TEXT function to enforce the comma, such as =TEXT(A1, "[>=1000]0,000;0").




