To display numbers in millions in Excel, use a custom number format: select the cells, press Ctrl+1 (Cmd+1 on Mac), go to the Number tab, choose Custom, and type 0.0,,"M" in the Type box. This divides the displayed value by one million and appends an M, while the underlying number stays unchanged. For a version without the M, use 0.0,,. The steps below cover this method and alternatives, plus fixes for common problems.

What You'll Need

  • Excel for Windows, Mac, or the web (the custom format works in all three; menu labels may differ slightly by version and region).
  • Your numbers already entered in cells (the format only changes display, not the stored value).

Step-by-Step

  1. Select the cells, columns, or rows containing the numbers you want to show in millions. You can select non-adjacent cells with Ctrl+click (Cmd+click on Mac).
  2. Open the Format Cells dialog: press Ctrl+1 (Windows) or Cmd+1 (Mac). Alternatively, right-click the selection and choose Format Cells.
  3. In the Format Cells dialog, go to the Number tab.
  4. In the Category list, select Custom.
  5. In the Type box, delete any existing code and enter one of these codes:
    • 0.0,,"M" — shows one decimal place and an M (e.g., 1,500,000 becomes 1.5M).
    • 0,,"M" — shows no decimal places (1,500,000 becomes 2M, because it rounds).
    • 0.00,,"M" — shows two decimal places (1.5M becomes 1.50M).
    • 0.0,, — shows the scaled number without the M suffix.
  6. Click OK. The selected cells now display the numbers in millions.
  7. To apply the same format elsewhere, use the Format Painter: select a formatted cell, click Format Painter on the Home tab, then drag over the target cells.
  8. For a permanent reusable format, after entering the code in the Type box, the custom format is saved in the current workbook. To use it in other workbooks, you would need to copy a formatted cell or recreate the format there.

Common Mistakes

  • Using one comma instead of two. Each comma after the number placeholder divides by 1,000. Two commas divide by 1,000,000. One comma shows thousands, not millions.
  • Expecting the underlying value to change. Custom formats only affect display. Formulas and calculations still use the full number. If you need the actual value divided by a million for calculations, use a formula like =A1/1000000 in a helper column.
  • Forgetting the M is text. The "M" inside quotes is literal text. Without quotes, Excel may interpret M as a date or month code, producing unexpected results.
  • Applying the format to cells that contain text. Custom number formats only affect numeric values. Text entries remain unchanged.
  • Assuming the format carries to new workbooks. Custom formats are stored per workbook. A new workbook will not have your custom format unless you copy it or use a template.

Tips

  • Use #,##0.0,,"M" if you want thousands separators in the scaled number (though for millions, the scaled number is usually small enough that separators are not needed).
  • To show negative numbers in parentheses, use a format like 0.0,,"M";(0.0,,"M").
  • You can combine scaling with color: [Red]0.0,,"M" shows the number in red.
  • If you need to display both the full number and the scaled version, consider using a helper column with a formula and formatting that column instead.
  • Remember that the format is display-only; charts and pivot tables will use the underlying values unless you change the chart axis settings separately.

Troubleshooting

  • The format code is rejected or shows an error. Check that you are in the Custom category and that the code uses the correct syntax. Ensure quotes are straight quotes, not curly quotes from a word processor.
  • Numbers show as 0.0M when they should be larger. Verify the cell actually contains a number, not text. You can check with the ISTEXT function or by looking at the alignment (numbers are right-aligned by default).
  • The M appears as a month name. This happens if you omit the quotes around M. Use "M" with quotes.
  • The format does not apply to all selected cells. Some cells may have a different format already applied. Reapply the custom format to the entire selection.
  • You need to remove the format. Select the cells, open Format Cells, choose General or Number with zero decimal places, and click OK.

Frequently Asked Questions

Can I show numbers in millions without the M suffix?

Yes. Use the custom format 0.0,, (two commas, no text). This divides the display by one million and shows the result with one decimal place.

Does this change the actual value in the cell?

No. The custom format only changes how the number is displayed. The underlying value remains the same, so formulas and calculations are unaffected.

How do I show numbers in millions with a dollar sign?

Use a format like $0.0,,"M". This displays a dollar sign, the scaled number, and an M. For other currencies, replace the $ with the appropriate symbol.

Why does my number show as 0.0M when it should be 1.5M?

Check that the cell contains a number, not text. Also ensure you used two commas, not one. One comma divides by 1,000, so 1,500,000 would become 1,500.0 with one comma and no M, or 1,500.0M if you added M incorrectly.

Can I apply this format to a chart axis?

Yes. Right-click the axis, choose Format Axis, and in the Number section, enter the same custom format code. This changes the axis labels to show millions.

Is there a keyboard shortcut to apply the millions format quickly?

There is no default shortcut for a custom format. You can create a macro or use the Format Painter after applying it once. Alternatively, the built-in format #,##0,,"M" can be typed in the Format Cells dialog, but it is not a one-key shortcut.