The fastest way to add commas to numbers in Excel
Select the cells containing your numbers, right-click, choose Format Cells, click the Numbers tab, select Number from the Category list on the left, and set the decimal places you want. Excel will add commas as thousands separators — so 1000 becomes 1,000 and 1000000 becomes 1,000,000. Click OK to apply the formatting to all selected cells at once.
This method changes only how the numbers appear on screen. The actual values in the cells stay the same, so formulas and calculations work exactly as before. You can undo the formatting at any time by selecting the cells again and choosing a different number format.
Key Takeaways
- Right-click selected cells, choose Format Cells, pick Number category, and set decimal places to add commas instantly.
- The comma formatting does not change the actual numbers stored in cells — only how they display.
- You can use the Format menu from the top toolbar instead of right-clicking if that is easier for your workflow.
- Excel's built-in number format works for negative numbers and decimals too, keeping commas in the right places automatically.
- Custom number formats let you add commas plus other symbols like currency signs or percentage marks in a single step.
Using the Format menu from the toolbar
If you prefer the menu bar over right-clicking, select your cells and go to Format in the top menu, then choose Cells. This opens the same Format Cells dialog. Click the Numbers tab, select Number from the Category list, and set your decimal places. The result is identical to the right-click method.
Some people find this approach faster when formatting large ranges of cells repeatedly, since the menu path stays consistent. Others prefer right-clicking because it is fewer steps. Both routes lead to the same formatting options.
Formatting negative numbers and decimals with commas
When you apply number formatting with commas, Excel handles negative numbers and decimals automatically. A negative number like -50000 becomes -50,000. A decimal like 1234.56 becomes 1,234.56. You do not need separate steps for these — the comma format works across all number types in your selection.
If you want to control how negative numbers look (for example, showing them in red or with parentheses), the Format Cells dialog offers preset options. In the Number category, you will see a list of formats on the right side. Some show negative numbers in red, others in parentheses, others with a minus sign. Pick the one that matches your needs before clicking OK.
Creating a custom number format with commas and other symbols
The built-in Number category handles most cases, but if you want commas plus currency symbols, percentage signs, or text, you can build a custom format. In the Format Cells dialog, select Custom from the Category list. You will see a text field labeled Type where you can enter a format code.
For example, the code #,##0 adds commas with no decimal places. The code #,##0.00 adds commas and shows exactly two decimals. To add a dollar sign, use $#,##0.00. To add a percent sign, use #,##0%. Type your code and click OK. Excel will apply it to all selected cells.
Custom formats are useful when you need the same formatting across many spreadsheets. Once you create a format you like, it stays in the Custom category list for future use, so you can apply it again without retyping the code.
Applying comma formatting to an entire column at once
Click the column header (the letter at the top) to select the entire column, then right-click and choose Format Cells. Select Number from the Category list, set your decimal places, and click OK. Every cell in that column will now display numbers with commas, including any numbers you add to the column later.
This approach is faster than selecting individual ranges when you know all the numbers in a column should have the same format. If only some cells in the column need commas, select just those cells instead of the whole column.
Removing comma formatting if you change your mind
Select the cells with comma formatting, right-click, and choose Format Cells. In the Numbers tab, select Number from the Category list and set the decimal places to 0 (or however many you want). Then click the format in the list that shows no commas — it will be labeled something like "General" or will display a sample number without commas. Click OK to remove the formatting.
Alternatively, select the cells and go to Format > Cells > Numbers tab, then choose General from the Category list. This removes all number formatting and displays the numbers as Excel stores them internally.
Why comma formatting does not affect calculations or sorting
Excel treats formatted numbers the same as unformatted ones in formulas, sums, and sorts. If you add two cells with comma formatting, the result is correct whether or not the result cell also has comma formatting applied. Sorting by a column with comma-formatted numbers sorts by the actual values, not the display — so 1,000 sorts before 10,000, not after it.
This separation between display and value is why formatting is safe to use. You can change how numbers look without worrying about breaking calculations or data order. If you ever need to see the raw numbers without commas, you can switch the format back in seconds.
Frequently Asked Questions
Does comma formatting change the numbers I type into other cells?
No. Formatting only affects how numbers display in the cells you selected. If you type a new number into a formatted cell, it will automatically show with commas, but the actual value stays the same. Formulas and calculations use the real value, not the formatted display.
Can I add commas to numbers that are stored as text?
No. Comma formatting only works on actual numbers. If a cell contains text that looks like a number (for example, if you typed an apostrophe before the number), Excel treats it as text and will not apply number formatting. You would need to convert the text to numbers first, usually by using the Data > Text to Columns feature.
What if I want commas but no decimal places?
In the Format Cells dialog, select Number from the Category list and set Decimal places to 0. Excel will show commas with no decimals — so 1234.56 displays as 1,235 (rounded). If you want to keep the decimals hidden but preserve them in calculations, set decimal places to 0 and the numbers will round for display only.
Can I apply comma formatting to a range of cells all at once?
Yes. Click the first cell, hold Shift, and click the last cell in the range you want to format. Then right-click and choose Format Cells. Select Number, set your decimal places, and click OK. All cells in the range will display with commas. You can also drag to select a range instead of using Shift+click.
Will comma formatting work if I copy and paste cells to another spreadsheet?
Yes. When you copy cells with comma formatting and paste them into another Excel file, the formatting comes along by default. If you want to paste only the numbers without the formatting, right-click in the destination cell and choose Paste Special, then select Values Only.