FormulaCraft

How to format a number with thousands separator in Excel and Google Sheets

Excel & Google Sheets
=TEXT(B2,"#,##0")

Verified example

Computed by a real spreadsheet engine on the sample data below.

NumberFormatted Number
1234567
890123.45
456

=TEXT(B2,"#,##0")0,##0

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the cell or range of cells containing the numbers you want to format.
  2. 2Right-click the selected cells and choose 'Format Cells' in Excel or 'Format' > 'Number' > 'More formats' > 'Custom number format' in Google Sheets.
  3. 3In the format cells dialog, enter '#,##0' in the format code field and click OK.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Can I apply this formatting to multiple cells at once?

Yes, select all the cells you want to format before following the steps.

What if my number has decimals?

Use '#,##0.00' in the format code to include two decimal places.

Does this change the actual value of the number?

No, it only changes how the number is displayed.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: