Currency with thousands separator
| A | |
|---|---|
| 1 | Amount |
| 2 | 1234.5 |
Formula: C1: =TEXT(A2,"$#,##0.00")
Result: $1,234.50
#,##0 adds the thousands separator, 0.00 forces two decimals.
TEXT format codes in Google Sheets are read according to the spreadsheet locale (File, Settings), which affects separators and month names.
TEXT(value, format_text)If a code gives a different layout from the one shown here, check that setting first.
For a fuller explanation of the arguments and common errors, see the TEXT Excel guide.
| A | |
|---|---|
| 1 | Amount |
| 2 | 1234.5 |
Formula: C1: =TEXT(A2,"$#,##0.00")
Result: $1,234.50
#,##0 adds the thousands separator, 0.00 forces two decimals.
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C1: =TEXT(A2,"mmm d, yyyy")
Result: Mar 9, 2024
mmm is the short month name, d the day, yyyy the four-digit year. Use "dddd" for the weekday name.
| A | |
|---|---|
| 1 | Invoice |
| 2 | 42 |
Formula: C1: =TEXT(A2,"00000")
Result: 00042
Each 0 is a mandatory digit, so 42 is padded to five characters.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in D2: =TEXT(A2,"#,##0.00")
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Number | Step | Result | |
| 2 | 1234.567 | 50 | 1,234.57 | |
| 3 | 17 | 5 | ||
| 4 | -4.7 | 12 | ||
| 5 | 144 | 9 | ||
| 6 | 2.5 | 3 | ||
| 7 | 50 | 12 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page