Applies ToExcel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016

Apply number formats such as dates, currency, or fractions to cells in a worksheet. For example, if you're working on your quarterly budget, you can use the Currency number format so your numbers represent money. Or, if you have a column of dates, you can specify that you want the dates to appear as March 14, 2012, 14-Mar-12, or 3/14.

Follow these steps to format numbers:

  1. Select the cells containing the numbers you need to format.

  2. Select CTRL+1.

  3. In the window that displays, select the Number tab (skip this step if you're using Microsoft 365 for the web).

  4. Select a Category option, and then select specific formatting changes on the right.

Format Cells dialog box

Stop your numbers from automatically formatting

Sometimes if you enter numbers into a cell—or import them from another data source—Excel doesn't format them as you expect. If, for example, you type a number along with a slash mark (/) or a hyphen (-), Excel might apply a Date format. You can prevent this automatic number formatting by applying the Text format to the cells.

It's easy to do:

  1. Select the cells that contain numbers you don't want Excel to automatically format.

  2. Select CTRL+1.

  3. On the Number tab, select Text in the Category list.

Save as Text in the Format Cells dialog box

Tip: Do you have numbers showing up in your cells as #####? This probably means your cell isn't wide enough to show the whole number. Try double-clicking the right border of the column that contains the cells with #####. This will change the column width and row height to fit the number. You can also drag the right border of the column to make it any size you want.

Follow these steps to format numbers:

  1. Select the cells containing the numbers you need to format.

  2. Select Control+1, or Command+1.

  3. In the window that displays, select the Number tab (skip this step if you're using Microsoft 365 for the web).

  4. Select a Category option, and then select specific formatting changes on the right.

Format Cells dialog box

Stop your numbers from automatically formatting

Sometimes if you enter numbers into a cell—or import them from another data source—Excel doesn't format them as you expect. If, for example, you type a number along with a slash mark (/) or a hyphen (-), Excel might apply a Date format. You can prevent this automatic number formatting by applying the Text format to the cells.

It's easy to do:

  1. Select the cells that contain numbers you don't want Excel to automatically format.

  2. Select Control+1, or Command+1.

  3. On the Number tab, select Text in the Category list.

Save as Text in the Format Cells dialog box

Tip: Do you have numbers showing up in your cells as #####? This probably means your cell isn't wide enough to show the whole number. Try double-clicking the right border of the column that contains the cells with #####. This will change the column width and row height to fit the number. You can also drag the right border of the column to make it any size you want.

When you type numbers in your worksheet, Excel for the web automatically applies the General number format but you can change this to show specific number formats like dates, currency, or even fractions.

For example, if you're working on your quarterly budget, you can use the Currency number format to show your numbers as monetary values. You can set dates to display either as a long date like Saturday, December 14, 2013 or a short date 12/14/13. Here's how:

  1. Select the column or cells you want to format.

  2. Right-click anywhere in the highlighted cell range. On the shortcut menu, select the format that you want and then select OK

Note: By applying a number format, you are only changing how the number is shown and not the actual cell values that Excel for the web uses for calculations.​​​​​​​

Currency option in Number format screen 

Tip: If some numbers appear as #####, it's probably because the cell isn't wide enough. To auto-fit the numbers, double-click the right border of the column header. You can also use the pointer to drag the border, or right-click the header and use the shortcut menu that appears.

change the column width 

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

See Also

Format a date the way you want

Format numbers as percentages

Format negative percentages to make them easy to find

Format numbers as currency

Create a custom number format

Convert dates stored as text to dates

Fix text-formatted numbers by applying a number format

Available number formats in Excel Online

Format numbers to keep leading zeros in Excel Online

Format numbers as text

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.