FormulaCraft

How to use custom number format codes in Excel and Google Sheets

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

Verified example

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

ProductPrice
Widget A1234.56
Widget B789.1
Widget C4567.8912
Widget D123

=TEXT(B2,"#,##0.00")1235,##0.00

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 you want to format.
  2. 2Right-click and choose 'Format Cells' in Excel or 'Format' > 'Number' > 'More formats' > 'Custom number format' in Google Sheets.
  3. 3In the Type field, enter your custom number format code.
  4. 4Click OK to apply the format.

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 use custom formats for dates?

Yes, you can use custom date formats by using appropriate date format codes.

What does the '#' symbol mean in a custom number format?

The '#' symbol is a placeholder for optional digits; it will not show zeros if there are no digits to display.

How do I remove a custom format?

Select the formatted cells, right-click, and choose 'Clear Formats' in Excel or 'Format' > 'Clear formatting' in Google Sheets.

Formulas used

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

Last reviewed: