Sub topic 13
Number, date, and currency formats
This chapter assumes you can enter values in cells and know that Sheets sorts typed input into text, numbers, and dates. It also assumes you know how to open the Format menu. Here you learn how a number format controls what a cell shows while the stored value stays the same.
Stored value and displayed value
Every cell holds a stored value. A number format is a display rule applied on top of it. If you type 1234.5 and apply a currency format, the cell shows $1,234.50. The formula bar and any formula that refers to the cell still see 1234.5.
This explains most surprises with formats. A cell showing 3 may hold 2.6. A cell showing Jan 5 may hold a full date with a year. Click the cell and check the formula bar to see the real value.
Applying built-in formats
Select the cells, then open Format > Number. The menu offers these choices:
| Format | Example display | Notes |
|---|---|---|
| Automatic | depends on input | Sheets picks a format from what you typed |
| Plain text | `00123` | Stores the entry as text |
| Number | `1,000.12` | Thousands separator, two decimals |
| Percent | `10.00%` | Multiplies the stored value by 100 for display |
| Scientific | `1.01E+03` | Exponent notation |
| Accounting | `$ (1,000.12)` | Aligns currency symbols, negatives in parentheses |
| Financial | `(1,000.12)` | Like Accounting without a symbol |
| Currency | `$1,000.12` | Symbol attached to the number |
| Date, Time, Date time | `9/26/2008` | Based on your locale |
| Duration | `24:01:00` | Elapsed time, not a clock time |
The toolbar has shortcut buttons for currency, percent, and increasing or decreasing decimal places. The decimal buttons change only the display. They never round the stored value.
Percent
A percent format multiplies the stored value by 100 for display. 0.15 shows as 15%. If you type 15 into a cell already formatted as percent, Sheets stores 0.15. If you type 15 first and apply percent afterward, the cell shows 1500%. Apply the format before entering the numbers.
Currency
Currency uses the symbol from your spreadsheet locale. To pick another symbol, use Format > Number > Custom currency. The currency format also sets how negatives appear and how many decimals show. For money you will total later, the stored value matters more than the display. See the rounding section below.
Dates and times are numbers
Sheets stores a date as the count of days since December 30, 1899, which is day 0. A time is a fraction of a day, so noon is 0.5. Typing 1/15/2026 12:00 stores a single number with an integer part (the date) and a fractional part (the time).
You can see this by applying Format > Number > Number to a date cell. The date turns into a number such as 46036.5. Apply a date format again and it returns. Because dates are numbers, subtracting two dates gives the days between them. Adding 7 to a date moves it a week forward.
If a typed date stays left-aligned and does not behave like a number, Sheets read it as text. Check the locale (covered in an earlier chapter) and the order of day and month.
Custom number formats
When the built-in formats fall short, choose Format > Number > Custom number format and type a pattern. Each symbol has a meaning.
| Symbol | Meaning |
|---|---|
| `0` | A digit slot. Shows a zero if no digit exists |
| `#` | A digit slot. Shows nothing if no digit exists |
| `,` | Thousands separator, or scaling when placed after the digit slots |
| `.` | Decimal point |
| `"text"` | Literal text, in quotes |
| `[Red]` | Color name in brackets |
This pattern from the spine shows a stored 1234.5 as $1,234.50:
$#,##0.00The #,##0 part means "show thousands separators, and show at least one digit before the decimal point". The .00 forces two decimals. A value of 0.5 displays $0.50, not $.50.
Sections for positive, negative, zero, and text
A custom format can have up to four sections separated by semicolons: positive, negative, zero, and text.
$#,##0.00;[Red]-$#,##0.00;"free";@Here positive values show as currency, negatives show in red with a minus sign, zero shows the word free, and text shows as typed (@ stands for the text itself). You can omit trailing sections. With one section, it applies to every number.
Useful patterns
00000
0.0,,"M"
0.0%
+0;-0;000000pads with leading zeros, so42shows as00042. The stored value is still42. This is the usual fix for ZIP codes that lose their leading zeros.0.0,,"M"scales by a million per comma pair, so2500000shows as2.5M.0.0%shows one decimal place in a percentage.+0;-0;0shows an explicit plus sign on positive numbers.
Date and time codes
| Code | Result for 2026-03-05 14:07 |
|---|---|
| `yyyy-mm-dd` | `2026-03-05` |
| `d mmm yyyy` | `5 Mar 2026` |
| `dddd, mmmm d` | `Thursday, March 5` |
| `h:mm AM/PM` | `2:07 PM` |
| `[h]:mm` | Total hours, can exceed 24 |
mm means month in a date pattern and minutes right after h. Sheets works out which you mean from context, but a pattern like mm:ss is read as minutes and seconds. Use square brackets, as in [h]:mm, when summing durations that pass 24 hours. Without them, 26 hours displays as 2:00.
Formats versus the TEXT function
A format changes display only. The TEXT function creates a new text value:
=TEXT(A2,"yyyy-mm-dd")Use TEXT when you need the formatted result inside another string, for example ="Due: "&TEXT(A2,"mmm d"). The result is text, so it will not sort or calculate like a date. If you only want a cell to look different, use a format and keep the number.
Rounding and display
Formats hide digits without removing them. If A1 holds 0.1 and A2 holds 0.2, then =A1+A2 gives 0.3 as displayed, but cells with 2.345 shown as 2.35 still add as 2.345. Totals can then appear off by a cent when you add the displayed values by hand.
=ROUND(B2,2)ROUND changes the stored value to two decimals. Use it when the rounded amount is the real amount, such as an invoice line. Use a format when you only want a tidy display.
Common errors
- Number is left-aligned and will not add. It is stored as text. Check for a leading apostrophe, a Plain text format, or stray spaces.
=VALUE(A2)converts it. - A date shows as a five-digit number. The cell has a Number format. Apply a Date format.
- Wrong separators or symbols. The spreadsheet locale controls these. Change it under File > Settings.
####does not appear in Sheets the way it does elsewhere. Sheets instead lets long numbers overflow or switch to scientific notation. Widen the column or choose a shorter format.- Clearing a format. Use Format > Clear formatting (Ctrl+\\ on Windows) to remove all styling, including number formats.
Exercise
Cell A1 holds the stored value 0.075 and is formatted as Percent with one decimal place. What does it display? Cell B1 contains =A1*1000. What does B1 show if it uses Automatic format? Then write a custom number format that shows 7 as 007.
Show answer
A1 displays 7.5%. B1 shows 75, because formulas use the stored value 0.075, and 0.075 * 1000 = 75. The custom format 000 shows 7 as 007 while the stored value stays 7.
Exercise
A colleague types the date 2026-03-05 in C2 and the cell is left-aligned. D2 has =C2+7, which returns the text-like result #VALUE!. Explain the likely cause and give two ways to fix it.
Show answer
Sheets did not recognize the entry as a date, so C2 holds text, often because the locale or a Plain text format blocked date detection. Fix it by changing the cell format to Automatic or Date and re-entering the value, or by converting it in a helper cell with =DATEVALUE(C2) (or =VALUE(C2)) and applying a Date format to the result.