How to Change Number Formatting in Excel
In this article
To change number formatting in Excel, select the cells you want to format, then either pick a preset from the Number Format dropdown on the Home tab (General, Number, Currency, Accounting, Short Date, Long Date, Percentage, Fraction, Scientific, Text) or press Ctrl+1 (Cmd+1 on Mac) to open Format Cells and choose a category with your own decimal places, thousands separator, symbol, or date style. The change applies instantly to the selection, and the underlying value stays the same — only the display changes.
What You'll Need
- Excel for Windows, Excel for Mac, Excel for the web, or the Excel mobile app (labels can differ slightly by version, device, and region).
- A workbook with data entered in cells.
- Optional: a custom format code if you need a display style the presets do not cover.
Step-by-Step
- Select the cells. Click a single cell, drag across a range, or press Ctrl+A (Cmd+A on Mac) to select the used range. For non-adjacent cells, hold Ctrl (Cmd on Mac) while clicking. You can also select an entire column by clicking its letter, or an entire row by clicking its number.
- Use the quick preset buttons first. On the Home tab, in the Number group, you will find the Number Format dropdown (it usually shows General by default) plus shortcut buttons for Currency, Percent Style, Comma Style, Increase Decimal, and Decrease Decimal. Clicking Percentage, for example, turns 0.25 into 25%. The Increase and Decrease Decimal buttons add or remove one decimal place per click.
- Open Format Cells for full control. Press Ctrl+1 (Cmd+1 on Mac) or right-click the selection and choose Format Cells. The dialog has tabs for Number, Alignment, Font, Border, Fill, and Protection. The Number tab is where all number formatting lives.
- Pick a category. In the Category list, choose General, Number, Currency, Accounting, Date, Time, Percentage, Fraction, Scientific, Text, Special, or Custom. Each category shows a preview and its own options — for example, Number lets you set decimal places and whether to use a thousands separator; Currency lets you pick a symbol and negative-number style; Date and Time let you pick a display pattern.
- Set the options and confirm. Adjust Decimal places, tick Use 1000 Separator (,), choose a Symbol, or select a negative-number format (such as -1234.10, (1234.10), or 1234.10 in red). Watch the Sample box at the top of the dialog — it shows exactly how the active cell will look. Click OK to apply.
- Use the Format Painter to copy the look. With the formatted cell selected, click Format Painter on the Home tab, then click or drag over the destination cells. This copies the number format along with fonts and fills. Double-click Format Painter to apply it to several separate ranges.
- Apply a custom format if needed. In Format Cells, choose Custom and type a code in the Type box. Common examples:
0.00for two decimals,#,##0for thousands with no decimals,$#,##0.00for currency,0%for a whole-number percentage,mm/dd/yyyyfor a US-style date,dd-mmm-yyfor 05-Jan-24, and00000to keep leading zeros (useful for ZIP codes). The four sections of a custom code, separated by semicolons, control positive, negative, zero, and text values in that order. - Format as Text when leading zeros must survive. If you type 01234 and Excel drops the zero, either format the cells as Text before typing or enter the value with an apostrophe prefix (
'01234). Formatting as Text after entry will not restore a zero Excel has already discarded. - Save or copy the format to other cells. The format is stored with the cell, so copying and pasting the cell carries it along (use Paste Special > Formats to paste only the formatting). To reuse it across a workbook, copy a formatted cell into a new sheet or save the workbook as a template.
Common Mistakes
- Expecting formatting to change the value. Number formatting only changes display. A cell showing 25% still contains 0.25. To convert the stored value, multiply by 100 in a helper column and paste values back, or use Paste Special > Multiply.
- Typing the symbol yourself. Entering "$1,200" as text stops Excel treating the cell as a number. Enter 1200 and apply the Currency format instead.
- Formatting dates that are stored as text. If dates are left-aligned and will not respond to date formats, they were probably imported as text. Use Data > Text to Columns or DATEVALUE to convert them.
- Losing leading zeros. Formatting as Number after entry cannot bring back a zero Excel already removed. Set the column to Text first, or use a custom format like
00000. - Applying formats to the wrong selection. Formatting the header row or an empty column by accident is easy. Check the Name Box (left of the formula bar) to confirm exactly which range is selected before you click OK.
- Mixing formats in one column. A column where some cells show two decimals and others show none looks inconsistent and can confuse readers. Select the whole column and apply one format.
Tips
- Use Accounting format when you want currency symbols aligned at the left edge of the cell and negative numbers in parentheses — it is the standard for financial statements.
- Keyboard shortcuts speed things up: Ctrl+Shift+1 applies Number with two decimals and a thousands separator; Ctrl+Shift+4 applies Currency; Ctrl+Shift+5 applies Percentage; Ctrl+Shift+3 applies a short date. On Mac, use Cmd+Shift with the same number keys.
- Custom formats can include text:
0" units"shows 12 units while the cell still holds 12. - To hide a value without deleting it, use the custom format
;;;(three semicolons). - If you need the same format everywhere, base new workbooks on a template that already has your formats applied.
- Remember that the displayed value is what prints and what appears in charts; the underlying value is what formulas use.
Troubleshooting
- Formatting will not apply. The cells may be locked on a protected sheet. Review > Unprotect Sheet (you will need the password if one was set).
- Numbers show as text (left-aligned, green triangle). Select the range, click the warning icon, and choose Convert to Number. For imported data, Data > Text to Columns with the General format usually fixes a whole column.
- Dates show as serial numbers like 45292. The cell is formatted as General or Number. Apply a Date format from Format Cells.
- Custom format rejected. Check for stray characters or an unescaped symbol. Literal text in a custom format must be in double quotes, and codes are case-sensitive in some contexts (m for month, mm for minutes when used after hours).
- The format disappears after pasting. A normal paste can overwrite formats. Use Paste Special > Formats, or paste values only into a pre-formatted range.
- Excel for the web looks different. The Home tab presets and Format Cells dialog are available, but some custom-code options and the full dialog layout differ from the desktop app. Open the file in desktop Excel for the complete set.
Frequently Asked Questions
Does changing number formatting change the value?
No. Formatting changes only how the number is displayed. Formulas and calculations continue to use the stored value.
How do I keep leading zeros in Excel?
Format the cells as Text before typing, or use a custom format such as 00000. An apostrophe before the number also forces text entry.
How do I show negative numbers in red or parentheses?
Open Format Cells, choose Number or Currency, and pick a negative-number style from the list on the right. The Accounting category uses parentheses by default.
Why does my percentage show 2500% instead of 25%?
The cell probably contains 25 rather than 0.25. Percentage format multiplies the stored value by 100 for display, so divide the value by 100 first, or enter it as 0.25.
Can I copy number formatting without copying the values?
Yes. Copy the formatted cell, then use Paste Special > Formats on the destination. Format Painter does the same job for on-screen use.
Where are custom formats stored?
They are saved inside the workbook. To reuse them in other files, copy a cell that carries the format, or save the workbook as a template.