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.
Number or date as text in a given format.
TEXT(value, format_text)Example: =TEXT(B2,"$#,##0")
Available in: All versions
TEXT converts a number or date into text formatted the way you specify: =TEXT(value, format_text). Use it to build labels such as "Total: $1,234.50" or "Mar 9, 2024", or to pad numbers with leading zeros.
| 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 |
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