Excel's numbering format controls how numbers appear in a cell without changing the value behind them, so you can show 1,234.50 as currency, as a percentage, or as 1,235 while formulas still use the full figure. The fastest route is to select your cells and press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, then pick a category under the Number tab. Everything else in this guide builds on that one dialog. Note that menu labels and ribbon locations vary slightly between Excel for Windows, Excel for Mac, and Excel for the web, so if a button is not exactly where described, look for the nearest equivalent.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web (Excel for the web has a reduced set of number formats and no full Format Cells dialog)
- A workbook with at least a few numbers in it to practise on
- Roughly ten minutes
Step-by-Step
- Select the cells you want to format. Drag across a range, click a column header to take the whole column, or press Ctrl+A (Cmd+A on Mac) with the cursor inside your data to grab the current region. Formatting only affects the selected cells, so be deliberate.
- Open the Format Cells dialog. Press Ctrl+1 on Windows or Cmd+1 on Mac. You can also right-click the selection and choose Format Cells, or use the small arrow in the bottom-right corner of the Number group on the Home tab. This dialog is the master control for every numbering format in Excel.
- Choose a category on the Number tab. General shows whatever Excel thinks fits. Number, Currency, Accounting, Date, Percentage, Fraction, Scientific, Text and Special each apply their own rules. Click one and the preview at the top of the dialog updates instantly.
- Adjust the options for that category. For Number you can set decimal places and tick Use 1000 Separator. For Currency and Accounting you pick a symbol and how negative values display. For Percentage, decimals work the same way. The sample box shows exactly what your cell will look like.
- Set negative numbers deliberately. In Number, Currency and Accounting, choose how negatives appear: with a minus sign, in red, in parentheses, or a combination. Parentheses are the usual convention in accounting, so pick that if the sheet is financial.
- Use a custom code when the presets are not enough. Pick Custom in the category list and type a format code in the Type box. The digits before the decimal point are placeholders that always show a digit; the ones after it are optional.
0.00gives two fixed decimals,#,##0adds thousands separators with no decimals, and000pads a number to three digits, so 7 becomes 007. Custom codes are what people usually mean by a numbering format. - Add text alongside numbers with a custom code. A code like
0" units"shows 12 units while the cell still holds 12. Quotes around literal text stop Excel treating letters as format symbols. Likewise0"kg"or#,##0" pcs"work well for simple labels. - Apply and check. Click OK. Verify that the value in the formula bar is unchanged while the cell display has changed. If the formula bar also changed, you are looking at text, not a formatted number.
- Copy the format to other cells. Select a formatted cell, click the Format Painter on the Home tab, then drag over the target range. Alternatively, copy the cell, select the destination, and use Paste Special > Formats so only the look transfers, not the value.
Common Mistakes
- Numbers stored as text. If a cell's content is left-aligned and refuses to format, it is probably text. A leading apostrophe, a space, or an import will do this. Convert with Text to Columns on the Data tab or by multiplying the range by 1 in an empty cell and pasting values back.
- Confusing display with value. Rounding the display to two decimals does not round the underlying number. Totals calculated from those cells will use full precision, so the visible column may not add up to the visible total. Use ROUND in a formula if you need the stored value rounded too.
- Applying a date format to a plain number. A serial number like 45000 becomes a date because Excel stores dates as day counts. If you format a number as a date by accident, press Ctrl+Z or reset the category to General.
- Breaking codes with stray characters. Text inside a custom code must be in double quotes. A bare letter can trigger an error or unexpected output.
- Formatting one cell at a time. Half-formatted columns look sloppy and cause sorting surprises. Select the full range first.
Tips
- Ctrl+Shift+1 applies a comma format with two decimals; Ctrl+Shift+4 applies currency; Ctrl+Shift+5 applies percentage. Forgetting the dollar sign? Press it again to cycle back.
- The Increase Decimal and Decrease Decimal buttons on the Home tab change displayed precision without opening the dialog, which is quicker for quick tweaks.
- Custom formats can carry colour: a code starting with a colour name in square brackets, followed by a section for each of positive, negative, zero and text values, lets you show positives in one style and negatives in another.
- Formats travel with the cell's style, so build one well-formatted template and reuse it rather than rebuilding column by column.
- When exporting to CSV, formatting is stripped and the raw value is written, so plan for that if others will open the file in another tool.
Troubleshooting
The cell will not change at all. Check the Number Format box on the Home tab. If it says Text, the cell was pre-formatted that way, often because it was set before the value was typed. Re-enter the number after switching the format to General or Number.
The custom code gives an error. Look for unquoted text, more decimal placeholders than you intend, or an invalid symbol. Clear the Type box and start again with a simple code, then add pieces one at a time.
Numbers show as a row of hashes. That means the column is too narrow, not that the data is wrong. Widen the column or double-click its right border to autofit.
Dates or IDs lose their leading zeros. Excel treats 00123 as the number 123. Format the column as Text before typing, or apply a custom code with three zero placeholders, depending on whether you need the value as a number or a string.
Formatting spread to cells you did not want changed. Undo with Ctrl+Z, then select the correct range only. Paste Special > Formats is the safest way to move a format between non-adjacent areas.
Frequently Asked Questions
Does changing the number format change the actual value?
No. Formatting only changes how the number is displayed. The stored value, and anything calculated from it, stays the same.
What is the difference between Number and Accounting format?
Both show separators and decimals, but Accounting aligns currency symbols and decimal points in a column and shows zeros as dashes, which suits financial statements. Number is simpler and more general.
Can I apply a custom number format to a whole column?
Yes. Click the column header to select the entire column, then open Format Cells and set the format. Every existing and future cell in that column inherits it until someone overrides it.
Why does my custom format show text on some cells and numbers on others?
Mismatched formats usually mean some cells are stored as text. Select the range, check the alignment, and convert the text entries to numbers before reapplying the format.
Is a cell phone number a number format?
Phone numbers are best stored as text, because leading zeros and formatting characters are part of the value. A custom code can display a pattern, but it will not preserve leading zeros reliably for all inputs.
Do number formats carry over when I copy a sheet to another workbook?
Yes, formats copy with the cells. If a custom format refers to locale-specific symbols, it may render slightly differently on a machine set to another region.